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
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
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
faa9f924c9
fix: Herospeed reaches the camera api on the control address port ( #8042 )
2026-11-24 19:48:31 -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
Jash Ambaliya
6da5273011
fix: escape single quotes in the ffmpeg concat list written by zmvideo refs #7861 ( #7862 )
2026-11-23 23:03:00 -05:00
Jash Ambaliya
9be76d0e3f
fix: bound the http timeout in the FoscamHD, Amcrest_HTTP and ONVIF control modules refs #7809 ( #7810 )
2026-11-23 23:02:38 -05:00
Jash Ambaliya
6f57aeb258
fix: Herospeed preset commands no longer log a missing speed or preset name refs #7789 ( #7790 )
2026-11-23 23:02:15 -05:00
Isaac Connor
cbe8272187
Merge pull request #7340 from AJ0070/fix-filter-tests-sql-quote
...
test: filter date range and filter_sql tests stub sql_quote, which Filter.pm now uses to quote values
2026-11-22 08:44:59 -05:00
Isaac Connor
13bf44c6b1
Merge pull request #7204 from AJ0070/fix-perl-storage-server
...
fix: Perl Server Url() no longer reuses the previous call's port or ends in a bare colon
2026-11-21 22:26:32 -05:00
Isaac Connor
3b98ab0923
Merge pull request #7174 from AJ0070/fix-event-move-copy
...
fix: filters don't move or copy an event that is still being recorded
2026-11-21 21:22:34 -05:00
Isaac Connor
8cf01df7f5
Merge pull request #7130 from AJ0070/fix-zmaudit
...
fix: zmaudit in continuous mode measures file ages from the current pass
2026-11-21 20:54:46 -05:00
Jash
55005cad0d
test: filter date range and filter_sql tests stub sql_quote, which Filter.pm now uses to quote values refs #7339
2026-11-22 06:34:54 +05:30
Jash
a9c11d1930
fix: Perl Server Url() no longer reuses the previous call's port or ends in a bare colon refs #7203
2026-11-21 23:34:18 +05:30
Jash
70d08c2082
fix: filters don't move or copy an event that is still being recorded refs #7173
2026-11-21 23:13:28 +05:30
Jash
799e1c6bdc
fix: zmaudit in continuous mode measures file ages from the current pass refs #7129
2026-11-21 22:44:06 +05:30
singhharsh1708
fae0a1ad36
fix: s3fs storage reaches an http:// endpoint over http instead of https
2026-11-21 22:14:34 +05:30
Isaac Connor
af0227e409
Merge pull request #6921 from AJ0070/fix-zmcamtool-multiline-insert
...
fix: zmcamtool imports seed INSERTs that span several lines
2026-11-21 10:36:11 -05:00
Isaac Connor
09bcfe872f
Merge pull request #6891 from AJ0070/fix-zmaudit-unlink-result
...
fix: zmaudit only re-scans after a broken event link was actually deleted
2026-11-19 22:42:36 -05:00
Jash
b3e722c987
fix: zmcamtool imports seed INSERTs that span several lines refs #6920
2026-11-20 08:26:26 +05:30
Isaac Connor
7b62ee82f0
Merge pull request #6885 from AJ0070/fix-zmfilter-short-option
...
fix: zmfilter accepts the documented -f option
2026-11-19 19:34:48 -05:00
Isaac Connor
15d6809ea8
Merge pull request #6889 from AJ0070/fix-zmaudit-single-sleep
...
fix: zmaudit continuous mode waits one check interval per pass, not two
2026-11-19 19:34:32 -05:00
Jash
ddf41bb539
fix: zmaudit only re-scans after a broken event link was actually deleted refs #6890
2026-11-19 20:27:40 +05:30
Jash
b0888d0d56
fix: zmaudit continuous mode waits one check interval per pass, not two refs #6888
2026-11-19 20:01:12 +05:30
Jash
99c571592b
fix: zmfilter accepts the documented -f option refs #6884
2026-11-19 19:58:36 +05:30
Isaac Connor
7d2ffa1aaa
Merge pull request #6778 from AJ0070/fix-uniview-default-speed
...
fix: Uniview PTZ moves use a default speed when none is sent
2026-11-19 08:49:50 -05:00
Isaac Connor
4f73df6260
Merge pull request #6764 from AJ0070/fix-dahua-probe-no-reboot
...
fix: Dahua_RPC probe no longer reboots or moves the camera
2026-11-19 08:48:22 -05:00
Isaac Connor
67537f9e95
Merge pull request #6766 from AJ0070/fix-skyipcam-double-flip
...
fix: SkyIPCam7xx no longer flips Left and Right a second time
2026-11-19 08:48:08 -05:00
Isaac Connor
44096299cf
Merge pull request #6768 from AJ0070/fix-loftek-movestop
...
fix: LoftekSentinel moveStop sends the stop code of the running move
2026-11-19 08:47:53 -05:00
Isaac Connor
1c878b8c5f
Merge pull request #6770 from AJ0070/fix-spp1802-home-url
...
fix: SPP1802SWPTZ presetHome uses the cgi-bin/hi3510 path
2026-11-19 08:47:38 -05:00
Isaac Connor
10ebaaf960
Merge pull request #6774 from AJ0070/fix-ptz-soapaction
...
fix: ONVIF PTZ requests send the SOAP action of the operation in the body
2026-11-19 08:47:19 -05:00
Isaac Connor
3b9bf24982
Merge pull request #6772 from AJ0070/fix-reolink-http-autostop
...
fix: Reolink_HTTP honours autostop for move, zoom and focus
2026-11-19 08:46:59 -05:00
Isaac Connor
a75bd130df
Merge pull request #6776 from AJ0070/fix-zmcontrol-direct-monitor
...
fix: zmcontrol direct protocol mode no longer dies on modules that pause motion detection
2026-11-19 08:46:18 -05:00
Isaac Connor
7c3331f130
Merge pull request #6786 from AJ0070/fix-control-open-result
...
fix: Instar720p and PSIA open() return whether the camera answered
2026-11-19 08:45:24 -05:00
Isaac Connor
8993419c57
Merge pull request #6782 from AJ0070/fix-toshiba-sendcmd-result
...
fix: Toshiba_IK_WB11A sendCmd reports failed camera requests
2026-11-19 08:45:10 -05:00
Jash
1d8e6df68a
fix: Instar720p sendCmd counts a successful retry and drops the doubled-scheme request refs #6787
2026-11-19 10:52:25 +05:30
Jash
5be7689133
fix: Instar720p and PSIA open() return whether the camera answered refs #6785
2026-11-19 10:51:08 +05:30
Jash
946ee49021
fix: Toshiba_IK_WB11A sendCmd reports failed camera requests refs #6781
2026-11-19 10:46:26 +05:30
Jash
60ae929aaa
fix: Uniview PTZ moves use a default speed when none is sent refs #6777
2026-11-19 10:42:54 +05:30
Jash
75c4bd9a76
fix: zmcontrol direct protocol mode no longer dies on modules that pause motion detection refs #6775
2026-11-19 10:41:46 +05:30
Jash
fdb2944893
fix: ONVIF PTZ requests send the SOAP action of the operation in the body refs #6773
2026-11-19 10:32:49 +05:30
Jash
d76f6aeeaf
fix: Reolink_HTTP honours autostop for move, zoom and focus refs #6771
2026-11-19 10:08:30 +05:30
Jash
cf4fd75fd5
fix: SPP1802SWPTZ presetHome uses the cgi-bin/hi3510 path refs #6769
2026-11-19 09:45:25 +05:30
Jash
963e7595cc
fix: LoftekSentinel moveStop sends the stop code of the running move refs #6767
2026-11-19 09:44:43 +05:30
Jash
62d2e033c7
fix: SkyIPCam7xx no longer flips Left and Right a second time refs #6765
2026-11-19 09:43:54 +05:30
Jash
8a60da63d3
fix: Dahua_RPC probe no longer reboots or moves the camera refs #6763
2026-11-19 09:41:47 +05:30
Jash
5deaa369fd
fix: read Linux top CPU usage by label so 100.0 values parse refs #6703
2026-11-18 18:48:13 +05:30
Isaac Connor
ade8b4c1bc
Merge pull request #5054 from AJ0070/fix/4964-storage-lock-order
...
fix: make the DiskSpace reclaim atomic with the event delete transaction
2026-11-17 21:23:11 -05:00
Isaac Connor
29c46c0f84
Merge pull request #6273 from singhharsh1708/fix/herospeed-zoom-focus-autostop
...
fix: send the Herospeed zoom and focus stop codes on auto stop
2026-11-15 20:52:12 -05:00