Commit Graph
1662 Commits
Author SHA1 Message Date
Isaac Connor af6dc77d30 Merge pull request #5691 from AJ0070/perl-signal-status
fix: treat a signal-killed child as a failure in event video and filter commands
2026-11-14 23:48:08 -05:00
Isaac Connor 410d859024 Merge pull request #5569 from AJ0070/5565-check-in-filesystem
fix: look for the first file with readdir in check_for_in_filesystem instead of a glob
2026-11-14 19:24:27 -05:00
Isaac Connor 9ee5ad8945 Merge pull request #5761 from AJ0070/zmfilter-fixes
fix: zmfilter ExistsInFileSystem IS NOT and negated Tags terms
2026-11-14 19:17:19 -05:00
Isaac Connor 8f49dd917d Merge pull request #5787 from AJ0070/filter-generator-fixes
fix: filter SQL generation for lists, groups, brackets and special terms
2026-11-14 18:52:29 -05:00
Isaac Connor ec6de0a913 Merge pull request #5925 from AJ0070/event-copy-fixes
fix: Deep link and S3 upload errors in Event CopyTo
2026-11-14 18:45:41 -05:00
Jash 33a8a998fb fix: treat a signal-killed child as a failure in event video and filter commands fixes #5690 2026-11-14 23:56:03 +05:30
Jash b21657eaa6 fix: report a failed S3 upload in Event CopyTo instead of copying to the local path and deleting the source refs #5924 2026-11-14 23:22:51 +05:30
Jash 26edfb8fa1 fix: create the Deep scheme .<id> link when copying or moving an event to another storage area refs #5924 2026-11-14 23:22:51 +05:30
Jash b27b7bee8e fix: recover Deep events at the start time their directory is named for refs #5904 2026-11-14 22:57:56 +05:30
Isaac Connor db78765ac5 Merge pull request #5819 from AJ0070/perl-logger-fixes
fix: perl logger term level and database logging after an outage
2026-11-14 12:00:19 -05:00
Isaac Connor 00f27f80ea Merge pull request #5843 from AJ0070/control-ui-fixes
fix: control capability checkbox reset, Cancel link, monitor Control Edit button and protocol fallback
2026-11-14 11:46:39 -05:00
Isaac Connor 0da5913fe6 Merge pull request #5845 from AJ0070/motion-control-fixes
fix: Perl monitor enable/disable actions and resumeMotionDetection
2026-11-14 11:45:42 -05:00
Isaac Connor 074440ede3 Merge pull request #5847 from AJ0070/perl-object-find-fixes
fix: Perl Object::find SQL and zmDbSupportsFeature version comparison
2026-11-14 11:44:22 -05:00
Isaac Connor 57bb470e27 Merge pull request #5855 from AJ0070/event-pm-fixes
fix: Perl event video generation, zmvideo options and zmrecover end time
2026-11-14 11:41:44 -05:00
Jash 1759a22afe fix: keep a partial trigger message until its line ends instead of handling both halves refs #5856 2026-11-14 19:13:17 +05:30
Jash f852294067 fix: remove the partial video zmvideo leaves behind when ffmpeg fails refs #5854 2026-11-14 19:10:30 +05:30
Jash 09c12b15af fix: round scaled zmvideo dimensions down to even numbers so libx264 accepts them refs #5854 2026-11-14 19:10:30 +05:30
Jash 5e3a0d6bb6 fix: keep the input size for zmvideo output unless a scale or size is asked for refs #5854 2026-11-14 19:10:30 +05:30
Jash 10faf2ded2 fix: pass zmvideo transforms to ffmpeg as one -vf chain so none are dropped refs #5854 2026-11-14 19:10:30 +05:30
Jash 98bed35ea6 fix: compute guess_EndDateTime from the event start and call it by its right name in zmrecover refs #5854 2026-11-14 19:10:30 +05:30
Jash 648e197acb fix: do not divide by a zero FullLength when generating an event video refs #5854 2026-11-14 19:10:30 +05:30
Jash 8f97927d94 fix: compare database versions as dotted versions in zmDbSupportsFeature refs #5846 2026-11-14 19:08:38 +05:30
Jash 6dcf6764e8 fix: match nothing for an empty list instead of emitting IN () in Object::find refs #5846 2026-11-14 19:08:38 +05:30
Jash 442540de82 fix: drop the PostgreSQL ::text cast from the like operator in Object::find refs #5846 2026-11-14 19:08:38 +05:30
Jash a64fad72bc fix: put GROUP BY before ORDER BY in Object::find_sql refs #5846 2026-11-14 19:08:38 +05:30
Jash a4b7dfaaf0 fix: send resume when a PTZ move leaves motion detection suspended refs #5844 2026-11-14 19:08:32 +05:30
Jash bf684d1fed fix: send resume for zmMonitorEnable and suspend for zmMonitorDisable refs #5844 2026-11-14 19:08:32 +05:30
Jash e473a4de0f fix: record the protocol zmcontrol falls back to from the control Name so the server does not exit for no protocol refs #5842 2026-11-14 19:03:45 +05:30
Jash 16ddc64101 fix: keep the perl logger writing to the database after a connection outage refs #5818 2026-11-14 18:46:22 +05:30
Jash 4972813b13 fix: apply the term log level option and ZM_LOG_LEVEL_TERM in the perl logger refs #5818 2026-11-14 18:46:22 +05:30
Jash f1af17f8f1 fix: sort a Perl filter by Tags with a subquery instead of the missing E.Tags column refs #5786 2026-11-14 18:17:43 +05:30
Jash 4552b47c69 fix: trim quotes and spaces off filter list values and drop empty ones refs #5786 2026-11-14 18:17:42 +05:30
Jash 7f54d85e25 fix: default a Perl filter term without an operator to = like the PHP refs #5786 2026-11-14 18:17:42 +05:30
Jash 0ca1a33436 fix: wrap MonitorName LIKE values in % in the Perl filter like the PHP does refs #5786 2026-11-14 18:17:41 +05:30
Jash 596d3f4f18 fix: apply every value of a filter term list and AND the negative operators refs #5786 2026-11-14 18:17:41 +05:30
Jash f2e85ff2c9 fix: Tags filter terms in zmfilter match the event's own tags refs #5760 2026-11-14 18:09:48 +05:30
Jash ea2cae553a fix: ExistsInFileSystem IS NOT in zmfilter selects the opposite events refs #5760 2026-11-14 18:09:48 +05:30
Isaac Connor a6b073c8f5 Merge pull request #5555 from AJ0070/5554-delete-path-no-shell
fix: delete event paths with File::Path instead of an unquoted rm -rf
2026-11-12 19:50:38 -05:00
Jash 491badd18c refactor: skip dot entries with substr instead of a regex refs #5565 2026-11-12 19:29:17 +05:30
Jash 3c8fd0f7c0 fix: look for the first file with readdir in check_for_in_filesystem instead of a glob fixes #5565 2026-11-12 02:06:28 +05:30
Isaac Connor cf0d054f76 Merge pull request #5562 from AJ0070/5560-delete-analysis-jpegs
fix: delete analysis jpegs by file name instead of an absolute glob result
2026-11-11 15:30:14 -05:00
Jash f31fe09959 fix: delete analysis jpegs by file name instead of an absolute glob result fixes #5560 2026-11-12 01:47:19 +05:30
Jash 90993466a4 fix: quote storage paths passed to df, du, ffprobe and AutoExecute refs #5556 2026-11-12 01:07:48 +05:30
Jash 90210ee3cc fix: delete event paths with File::Path instead of an unquoted rm -rf fixes #5554 2026-11-12 00:35:27 +05:30
Jash 43fde1a551 perf: load Data::Dumper when Dump() is called instead of at startup fixes #5547 2026-11-11 23:16:30 +05:30
Jash b9cb8e02de perf: import only the POSIX names zmdc.pl uses and none where nothing is used refs #5547 2026-11-11 23:16:30 +05:30
Jash 24a75775d2 perf: load ConfigData only in the functions that write the Config table refs #5547 2026-11-11 23:16:20 +05:30
Isaac ConnorandClaude Opus 5.5 9e3885e8fd refactor: remove ZM_OPT_FAST_DELETE
With fast deletes on, deleting an event in the web interface removed only
its Events row and left its Frames and Stats rows and its files for
zmaudit, and deleting a monitor left all of its events. zmaudit only runs
when ZM_RUN_AUDIT is on, and both options default to off independently,
so with fast deletes on and the audit off nothing ever removed them and
the Frames table grew without bound. In the Perl Event::delete the option
also kept zmfilter from removing the files of the events it purged.

Remove the option. ZM\Event::delete() always removes the Stats and Frames
rows and the files in one transaction with the Events row,
ZM\Monitor::destroy() always deletes the monitor's events, and the Perl
Event::delete deletes the files unless the storage area has DoDelete off.
zmupdate.pl rebuilds the Config table from ConfigData, so the option's row
goes away on upgrade without a migration. Drop the option from the docs,
from the zmaudit option help, and from the es_la, ro_ro and ru_ru
translations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 22:50:01 -05:00
Isaac ConnorandClaude Opus 5.5 960d8feef7 fix: make Current Weekday filter terms run in the web UI and zmfilter.pl refs #5418
FilterTerm::sql_attr() returned 'weekday(NOW()' without its closing
parenthesis, so any filter with a Current Weekday term failed with
"Database query failed". FilterTerm::valid() treated the value 0 (Monday) as
missing, so a Monday term was dropped and the filter matched every event.

ZoneMinder::Filter had no CurrentWeekday case at all and emitted
E.CurrentWeekday, a column Events does not have, so zmfilter.pl could not run
such a filter either. Emit weekday(NOW()) there as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 17:29:02 -05:00
Nic BoetandClaude Opus 5.5 2625b53108 fix: let the PSIA control module compile
PSIA.pm has not compiled since it was added: move() built an unused
command string from undeclared $panSteps/$tiltSteps, and the PUT and
DELETE error paths logged an undeclared $cmd. zmcontrol.pl loads the
module when a PSIA camera is moved, so every PSIA PTZ command died.

Drop the unused line and log the request path on failure. A new test
compiles every control module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 10:27:39 -05:00