Commit Graph
820 Commits
Author SHA1 Message Date
Harsh Singh bbbbc81faf fix: API tag and event edits keep the assignment date and user of the tag links that stay (#8545) 2026-11-29 17:39:12 -05:00
Harsh Singh 185c542356 fix: API zone add requires a Name and zone presets require a non-blank Name (#8543) 2026-11-29 17:39:08 -05:00
Harsh Singh d2474aaaa7 fix: API events search treats a list in a named parameter as a list of values instead of dying on it (#8480) 2026-11-28 23:57:20 -05:00
Harsh Singh a113f7fd28 fix: API monitor add and edit answer a validation error for a list Device on a Local monitor instead of a 500 (#8486) 2026-11-28 23:56:03 -05:00
Harsh Singh 561b3810ce fix: API states are keyed on Id so an Id in the body no longer renumbers the state or gives a 500 (#8484) 2026-11-28 12:13:25 -05:00
Harsh Singh 65730848df fix: API saves refuse null and an empty list for a NOT NULL column instead of a 500 (#8496) 2026-11-28 11:06:11 -05:00
Harsh Singh 8a107cfef3 fix: API tag add requires a Name (#8472) 2026-11-28 11:04:52 -05:00
Harsh Singh 7397e5f593 fix: API frame edit validates the values before it updates the row (#8474) 2026-11-28 11:04:27 -05:00
Harsh Singh 7b832e3666 fix: API filters write a list given with = or <> as IN or NOT IN instead of a 500 (#8478) 2026-11-28 11:04:11 -05:00
Jash Ambaliya ca30622be7 fix: API user delete keeps the preferences when the user delete fails (#7894)
* fix: API user delete keeps the preferences when the user delete fails refs #7893

* test: stub getDataSource on the User fake in the user delete preferences test refs #7893
2026-11-27 18:47:12 -05:00
Harsh Singh 7ad36d0b30 fix: API frame add answers a validation error for a nested Type instead of a 500 (#8461) 2026-11-27 18:30:21 -05:00
Harsh Singh 93a7340519 fix: API user preference edit answers 400 for a non-object UserPreference instead of a 500 (#8463) 2026-11-27 18:29:54 -05:00
Harsh Singh 3ca2b3b89f fix: API user preference edit answers a JSON message instead of a PHP warning and template text (#8465) 2026-11-27 18:29:29 -05:00
Harsh Singh 927cc342c3 fix: API saves refuse an empty string for a NOT NULL number, date or enum column (#8421) 2026-11-27 08:53:03 -05:00
Harsh Singh fabd8819ae fix: API encoder template index answers 400 for a nested Encoder list instead of a 500 (#8439) 2026-11-27 08:49:57 -05:00
Harsh Singh ebb9b27400 fix: API notification add and edit answer 400 for a non-object Notification and no 500 for a nested Token (#8429) 2026-11-27 08:44:04 -05:00
Harsh Singh c50701129b fix: API monitor add and edit answer a validation error for an array ServerId or StorageId instead of a 500 (#8417) 2026-11-27 08:42:07 -05:00
Harsh Singh c3c2823411 fix: api controllers may set components as properties without a PHP 8.2 deprecation (#8431) 2026-11-27 08:41:36 -05:00
Harsh Singh df27d2da28 fix: API model rules answer a validation error for a list instead of a 500 (#8425) 2026-11-27 08:41:17 -05:00
Harsh Singh 8e709bb9d5 fix: API filters answer 400 for a nested array in a named parameter instead of a 500 (#8423) 2026-11-27 08:40:33 -05:00
Harsh Singh fa28222141 fix: API index answers 400 for a list in sort or direction instead of a 500 (#8427) 2026-11-27 08:40:13 -05:00
bad3940375 fix: API add and edit answer 400 when the save fails in 13 more controllers, as Users and Notifications do (#7384)
* fix: API add and edit answer 400 when the save fails in 13 more controllers, as Users and Notifications do refs #7383

* test: misc API controllers test gives its stub controller a response, as the controllers now set a status refs #7383

---------

Co-authored-by: Isaac Connor <isaac@zoneminder.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 08:16:35 -05:00
Jash Ambaliya 51c9a58479 fix: API daemonStatus says a monitor on another server is not local instead of asking the local zmdc refs #7275 (#7276) 2026-11-27 08:13:08 -05:00
Jash Ambaliya 0d9c9aed55 fix: API storage and event view hide the s3 key and secret in a storage area Url from users who cannot edit System refs #7931 (#7932) 2026-11-26 22:34:08 -05:00
Jash Ambaliya d5eed51d0c fix: API group delete keeps the children where they were when the delete fails refs #7895 (#7896) 2026-11-26 22:33:40 -05:00
Jash Ambaliya b56e314a3f fix: API config delete refuses System and Readonly entries as edit does refs #7889 (#7890) 2026-11-26 21:33:16 -05:00
Jash Ambaliya 99a6d95957 fix: API monitor alarm and daemon actions answer 404 for a deleted monitor refs #7891 (#7892) 2026-11-26 21:32:40 -05:00
Jash Ambaliya d57488b81e fix: API zone edit refuses a GET instead of answering an empty 200 refs #7885 (#7886) 2026-11-26 19:15:07 -05:00
Jash Ambaliya a6a3a0bb1c fix: API zone list and add refuse a deleted monitor refs #7883 (#7884) 2026-11-26 19:14:38 -05:00
Harsh Singh 986fbee395 fix: API group add and edit refuse a ParentId that matches no group (#8397) 2026-11-26 18:53:16 -05:00
Harsh Singh 23b5a538f0 fix: API monitor add and edit refuse an Ffmpeg source path with no protocol (#8399) 2026-11-26 18:53:03 -05:00
Harsh Singh 6405574071 fix: API saves refuse a decimal outside the column's range (#8395) 2026-11-26 18:41:05 -05:00
Harsh Singh 5ceb737be9 fix: API monitor add and edit refuse a ManufacturerId or ModelId that matches no row (#8401) 2026-11-26 18:39:42 -05:00
Jash Ambaliya cd9fa3171f fix: API groups index, view and associations hide groups the user cannot view refs #7512 (#7513) 2026-11-26 17:55:58 -05:00
Harsh Singh d1ff6bf234 fix: API group add links monitors given as a MonitorIds array (#8096) 2026-11-26 08:57:34 -05:00
Harsh Singh e91f658118 fix: API storage add requires a Name and Path and edit refuses blank ones (#8351) 2026-11-26 08:56:10 -05:00
Harsh Singh 3422c6540e fix: API filters refuse a list given to LIKE, REGEXP and comparison operators instead of a 500 (#8084) 2026-11-26 08:51:14 -05:00
Harsh Singh 296c6c6af6 fix: API saves refuse a datetime with an hour, minute or second out of range (#8106) 2026-11-26 08:49:12 -05:00
Harsh Singh 3ca22ce72b fix: API server add requires a Name and edit refuses a blank one (#8349) 2026-11-26 08:48:20 -05:00
Jash Ambaliya 9459d91fa0 feat: API can generate an event video refs #8265 (#8266) 2026-11-26 08:47:45 -05:00
Harsh Singh 8d1189246f fix: require Name on API manufacturer add (#8329) 2026-11-26 08:41:07 -05:00
Harsh Singh d57c35e514 fix: API tag add and edit refuse a name that differs only in case from another tag (#8319) 2026-11-26 08:39:43 -05:00
Harsh Singh 3de2512ea4 fix: API state delete makes default active when it deletes the active state (#8313) 2026-11-26 08:31:29 -05:00
Harsh Singh 9ed6586f00 fix: API role add requires a Name (#8347) 2026-11-26 08:09:25 -05:00
Harsh Singh c35c8a179a fix: API group add requires a Name (#8345) 2026-11-26 08:09:11 -05:00
Harsh Singh 917d34437b fix: API config edit refuses a value that is not valid for the option's type (#8315) 2026-11-26 08:06:20 -05:00
Jash Ambaliya d13098901f fix: API role edit and user preference add and edit refuse other request methods refs #8299 (#8300) 2026-11-25 20:41:44 -05:00
Jash Ambaliya 2649b3cf4d feat: API sends a PTZ command to a controllable monitor refs #8206 (#8207) 2026-11-25 20:38:53 -05:00
Harsh Singh 4bc6d139f8 fix: API saves refuse a whole number outside the column's range (#8108) 2026-11-25 20:37:20 -05:00
Jash Ambaliya c0e12c3ba2 feat: API creates a snapshot from monitors as the web snapshot action does refs #8208 (#8209) 2026-11-25 20:31:24 -05:00