Commit Graph
3830 Commits
Author SHA1 Message Date
Jash Ambaliya c9b6cf98f6 fix: option patterns and hints agree with the values they offer, so the default filter position shows as selected refs #8410 (#8411) 2026-11-27 08:53:26 -05:00
Harsh Singh 545faef864 fix: zmaudit check interval test counts sleep($audit_interval) so the Perl CI passes (#8441) 2026-11-27 08:49:42 -05:00
2c32cc6307 fix: keep recording when the Events insert fails, and let zmrecover give the event a normal id refs #7999 (#8409)
* fix: record an event under a time-based id when its insert keeps failing refs #7999

* fix: an event whose insert fails while zmc shuts down records under a fallback id too refs #7987

Event::Event stopped retrying the Events insert as soon as zm_terminate was
set, leaving the event with id 0, so its frames and video were written under
event 0. It now takes the same time-based fallback id it uses after three
failed attempts, so the recording is kept and zmrecover.pl can add it.
Monitor::openEvent never sees an id of 0 any more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat: zmrecover gives an event recorded under a fallback id a normal id, and zmaudit keeps it refs #7999

When zmc cannot insert an event's row it records the event under a time-based
id far above the auto increment range. Recovering it as-is would leave that id
in the Events table and push auto increment past it.

ZoneMinder::Event::save_with_new_id() inserts the row without an Id, so it gets
the next auto increment id, then moves the event to match: the Medium or
Shallow directory, the Deep .<id> link or Shallow .<id> file, the
<id>-video.* file, the eid and file name in index.m3u8, DefaultVideo, the
recovered name, and any Frames, Stats, Event_Data, Events_Tags,
Snapshots_Events and Events_* summary rows zmc queued under the old id. If the
directory cannot be moved it removes the new row and keeps the old id, so a
later run can try again. zmrecover.pl saves every recovered event through it
when the id is in the fallback range.

zmaudit deleted the files of any event with no row once it was older than
ZM_AUDIT_MIN_AGE, which would throw away exactly the video the fallback id
exists to keep. It now warns and leaves those events for zmrecover.pl, and its
orphaned Frames, Stats and Event_Data cleanups stop below the fallback range.

The zmaudit and zmrecover tests that replace ZoneMinder::Event with a stub get
the two new names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jash <jashambaliya1@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 08:48:23 -05:00
6b1bc408c8 fix: FoscamCGI and LoftekSentinel moveStop stops both axes after a diagonal move (#7740)
* fix: FoscamCGI and LoftekSentinel diagonal moves start both directions before stopping refs #7717

* fix: FoscamCGI and LoftekSentinel moveStop stops both axes after a diagonal move refs #7739

---------

Co-authored-by: Isaac Connor <isaac@zoneminder.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:20:06 -05:00
Jash Ambaliya af74bed212 fix: zmx10 refuses on/off without a unit and treats 05 and 5 as one unit refs #7759 (#7760) 2026-11-26 22:09:26 -05:00
Jash Ambaliya ed8036ceda fix: zmupdate event migration looks up the web group gid by ZM_WEB_GROUP, not the web user name refs #7787 (#7788) 2026-11-26 22:03:19 -05:00
Jash Ambaliya 568e5ae00b fix: zmx10 keeps each monitor last state across a task reload refs #7849 (#7850) 2026-11-26 21:36:56 -05:00
Jash Ambaliya 066ce9f13a fix: bound the http timeout in the remaining control modules and the base Control user agent refs #7857 (#7858) 2026-11-26 21:31:28 -05:00
Jash Ambaliya df16e96936 fix: zmx10 skips deleted monitors when loading tasks refs #7847 (#7848) 2026-11-26 19:16:48 -05:00
Jash Ambaliya 78cddc9d8e fix: set a timeout on the zmtelemetry, zmupdate and remote zmcControl http clients refs #7859 (#7860) 2026-11-26 19:15:39 -05:00
Jash Ambaliya b82f4f3ec6 fix: stop zmupdate when adding the Colours or Deinterlacing column fails refs #7863 (#7864) 2026-11-26 19:01:37 -05:00
Harsh Singh 3b32f96d08 fix: zmtelemetry shows the usage for an unknown option (#8391) 2026-11-26 19:00:45 -05:00
Harsh Singh dfe0db5cf1 fix: zmonvif-probe --version prints the ZoneMinder version (#8389) 2026-11-26 18:53:31 -05:00
Jash Ambaliya c50b1f19d0 fix: zmaudit and zmfilter use the default interval when the option is 0 instead of spinning refs #8368 (#8369) 2026-11-26 18:52:39 -05:00
Jash Ambaliya 6989abebb7 fix: a cookie lifetime under a minute no longer regenerates the session on every request or purges every session refs #8372 (#8373) 2026-11-26 18:52:14 -05:00
Jash Ambaliya 8eeb479980 docs: Perl tools' help lists every option they accept refs #8360 (#8361) 2026-11-26 18:34:58 -05:00
Jash Ambaliya 3be61290f0 fix: trim spaces around zmx10 Activation, AlarmInput and AlarmOutput entries refs #7737 (#7738) 2026-11-26 18:33:51 -05:00
Jash Ambaliya a48b289d2c fix: zmx10 ignores SIGPIPE when a client hangs up before the reply refs #7851 (#7852) 2026-11-26 18:33:27 -05:00
Harsh Singh fb13a99223 fix: zmpkg run state change no longer resets an empty ONVIF alarm text (#8048) 2026-11-26 08:52:25 -05:00
Harsh Singh 2f4d1fc388 fix: keep an IPv6 camera address in one piece in the HikVision control url (#8309) 2026-11-26 08:48:05 -05:00
Harsh Singh e9789588d5 fix: register the retry credentials of an IPv6 camera under the key LWP looks up in the Uniview control (#8343) 2026-11-26 08:33:04 -05:00
Harsh Singh e16765d221 fix: keep the brackets of an IPv6 camera address from the monitor path in the Vivotek ePTZ control url (#8341) 2026-11-26 08:32:52 -05:00
Harsh Singh ca9c97b462 fix: keep the brackets of an IPv6 camera address in the Grandstream control url (#8339) 2026-11-26 08:32:37 -05:00
Harsh Singh ac628b8cb7 fix: keep the brackets of an IPv6 camera address in the FoscamHD control url (#8337) 2026-11-26 08:32:26 -05:00
Harsh Singh 24a871626c fix: keep the brackets of an IPv6 camera address in the Netcat control url (#8311) 2026-11-26 08:32:07 -05:00
Harsh Singh 8818c89121 fix: keep the brackets of an IPv6 camera address in the Reolink HTTP api url (#8307) 2026-11-26 08:31:56 -05:00
Harsh Singh c405c811df fix: keep the brackets of an IPv6 camera address in the Dahua RPC url (#8305) 2026-11-26 08:31:45 -05:00
Harsh Singh e6c4b00120 fix: s3 event keys put one slash between the Url subpath and the event path (#8325) 2026-11-26 08:31:11 -05:00
Harsh Singh 5f617fa1ad fix: Keekoon open reports success (#8317) 2026-11-26 08:06:43 -05:00
Jash Ambaliya ab52622d14 fix: zmupdate says what to check when it cannot connect to the database refs #8269 (#8270) 2026-11-25 22:54:12 -05:00
Jash Ambaliya 938ff65491 feat: filter Execute reports whether the filter ran, and zmfilter logs the match count at Info for one-off runs refs #8218 (#8219) 2026-11-25 20:32:12 -05:00
Jash Ambaliya 153aabe06b fix: zmstats sleeps 60 seconds when ZM_STATS_UPDATE_INTERVAL is 0 or not a positive number instead of looping without a pause refs #7285 (#7286) 2026-11-25 20:28:47 -05:00
Jash Ambaliya b15c4b621b feat: zmtrigger --help and --version print usage and version instead of starting the daemon refs #8271 (#8272) 2026-11-25 18:18:45 -05:00
Jash Ambaliya 9af4ab56f5 docs: zmonvif-probe help lists the options and commands it accepts refs #8267 (#8268) 2026-11-25 18:18:41 -05:00
Jash Ambaliya 464e922f90 fix: the JSON fallback decoder no longer evals code from a string or from outside strings (#7467)
* fix: the JSON fallback decoder no longer evals code from a string or from outside strings refs #7466

* fix: jsonDecode fallback matches JSON number tokens and allows only JSON punctuation outside strings refs #7466
2026-11-25 18:12:21 -05:00
Jash Ambaliya 7fcb9f3dd5 feat: filters can tag the events they match refs #8239 (#8240) 2026-11-25 18:04:02 -05:00
Harsh Singh 571a0372ee fix: Serial_HEX_PelcoD open reports success (#8254) 2026-11-25 17:49:09 -05:00
Jash Ambaliya 7ae5bb1d86 fix: an event with no id has no relative path in the Shallow and Medium schemes refs #7650 (#7651) 2026-11-25 17:13:02 -05:00
Jash Ambaliya a16d322f63 fix: zmcontrol only runs methods the control module defines, not base class or imported functions (#7605)
* fix: zmcontrol only runs methods the control module defines, not base class or imported functions refs #7604

* fix: PTZ control also refuses methods from the classes ZoneMinder::Control inherits refs #7604
2026-11-25 17:12:58 -05:00
Jash Ambaliya edb5be145a feat: zmdc says when it will restart a crashed daemon and how often it has failed refs #8200 (#8201) 2026-11-25 08:39:27 -05:00
Jash Ambaliya 4561178a95 fix: zmcontrol reopens a closed control before running a command instead of failing until restarted refs #7408 (#7409) 2026-11-25 08:37:32 -05:00
Jash Ambaliya f9bd6bb481 fix: refuse newlines in allow-listed filter commands (#7439)
* fix: refuse newlines in allow-listed filter commands refs #7438

* fix: allow-listed commands also refuse process substitution refs #7438
2026-11-25 08:33:08 -05:00
Harsh Singh cc4615a75c fix: zmfilter %FP% links to the matched filter by Id, which the filter view opens (#7944) 2026-11-24 22:31:44 -05:00
Harsh Singh 55474da847 fix: zmfilter upload archives the event's files when the storage path has a space (#7946) 2026-11-24 22:31:24 -05:00
Harsh Singh 31a7d53b4f fix: find mkv and webm event videos when recovering or closing an event (#7978) 2026-11-24 20:44:25 -05:00
Harsh Singh 2e196808af fix: zmaudit reads the event id from <id>-video.<codec>.<container> in deep event directories (#7980) 2026-11-24 20:43:46 -05:00
Jash Ambaliya a90f3e8bea fix: zmaudit only restarts its pass after an event directory is actually removed refs #8027 (#8028) 2026-11-24 20:43:16 -05:00
Harsh Singh faa9f924c9 fix: Herospeed reaches the camera api on the control address port (#8042) 2026-11-24 19:48:31 -05:00
Jash Ambaliya b7f6726cfe fix: event delete keeps the files when the commit of its row deletes fails refs #8023 (#8024) 2026-11-24 19:41:58 -05:00
Harsh Singh 1aa3615c44 fix: jsonEncode and jsonDecode use JSON::MaybeXS when it is installed (#8064) 2026-11-24 19:37:23 -05:00