Commit Graph
2004 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 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 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 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 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 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 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 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
Jash Ambaliya d0d28ded30 fix: bound the http timeout in 21 more control modules refs #7865 (#7866) 2026-11-24 19:34:59 -05:00
Harsh Singh adf30b6d3c fix: keep the brackets of an IPv6 camera address in the Hi3510 control URL (#8168) 2026-11-24 19:34:55 -05:00
Harsh Singh d703074245 fix: FI8608W zoomStop and irisStop stop the ptz when a continuous button is released (#8162) 2026-11-24 19:34:50 -05:00
Harsh Singh 728f1076da fix: FI9821W zoomStop, focusStop and irisStop stop the ptz when a continuous button is released (#8160) 2026-11-24 19:34:47 -05:00
Harsh Singh 1641615bb0 fix: FI8620 zoomStop and focusStop stop the ptz when a continuous button is released (#8066) 2026-11-24 19:34:44 -05:00
Harsh Singh b69089bfb8 fix: Dahua presetSet no longer names an unlabelled preset 0 (#8058) 2026-11-24 19:34:39 -05:00
Harsh Singh 2151113ddb fix: Vivotek ePTZ zoomStop no longer logs an error when a zoom button is released (#8056) 2026-11-24 19:34:35 -05:00
Harsh Singh a95220db0f fix: Reolink ONVIF zoomStop stops a continuous zoom when the button is released (#8050) 2026-11-24 19:34:31 -05:00
Harsh Singh 4803c0137b fix: IPCAMIOS rotate right from the auto orientation no longer sends rotation=-1 (#8046) 2026-11-24 19:34:27 -05:00
Jash Ambaliya a8755943bf fix: Instar720p presetHome and single steps no longer leave motion detection suspended refs #7855 (#7856) 2026-11-24 19:34:24 -05:00
Jash Ambaliya d4f890a6c5 fix: HikVision splits the control address userinfo on the first colon refs #7853 (#7854) 2026-11-24 19:34:20 -05:00
Jash Ambaliya ff94acab80 fix: Sony relative diagonal PTZ moves send the configured step instead of a fixed 05 refs #7769 (#7770) 2026-11-24 19:34:16 -05:00
Harsh Singh 6ecb47efb2 fix: keep the brackets of an IPv6 camera address in the Tapo ONVIF control URL (#8164) 2026-11-24 19:31:36 -05:00
Harsh Singh d9792f9db9 fix: keep the brackets of an IPv6 camera address in the AMLink RPC url (#8166) 2026-11-24 19:11:54 -05:00
Harsh Singh 02006d2bc9 fix: PelcoD open reports a serial port that cannot be opened instead of dying (#8068) 2026-11-24 19:10:18 -05:00
Harsh Singh 1b36ec418c fix: Dahua_RPC no longer keeps a refused ptz instance as its handle (#8062) 2026-11-24 19:10:15 -05:00
Harsh Singh 140153826b fix: Amcrest sendCmd retry on an https camera with a self-signed certificate (#8060) 2026-11-24 19:10:11 -05:00
Harsh Singh e55c6dda2f fix: Reolink_HTTP uses https when the Control Address starts with https:// (#8054) 2026-11-24 19:10:07 -05:00
Harsh Singh 0bf1da7c35 fix: Visca open reports a serial port that cannot be opened instead of dying (#8052) 2026-11-24 19:10:02 -05:00
Harsh Singh 1678b7a20d fix: keep the brackets of an IPv6 camera address in the ONVIF control URL (#8044) 2026-11-24 19:09:58 -05:00
Jash Ambaliya 9a83e95737 fix: a missing S3 bucket logs an error instead of killing the filter or audit run refs #8025 (#8026) 2026-11-24 19:09:47 -05:00
Jash Ambaliya 50393b558b fix: keep the default port in Netcat control address parsing when none is given refs #7735 (#7736) 2026-11-24 18:29:00 -05:00
Jash Ambaliya 651677677c fix: DCS3415, mjpgStreamer and Toshiba_IK_WB11A sendCmd log the command instead of Tx refs #7765 (#7766) 2026-11-24 17:59:25 -05:00