fix(server): trash and photo-delete API answers, body limit and audit
- frames/delete carries its own request body limit (about 4.8 MB), so the documented 100,000 ids fit; the server's 1 MiB stopped at about 26,900. - Restore tells a damaged or foreign sidecar of the target sequence (409 sidecar_mismatch) from an entry whose files no longer match its record (422 trash_mismatch, now a TrashMismatchException); frames/delete answers sidecar_mismatch instead of 500, and 404 when the sequence left the index between plan and delete, also on the re-plan. - With the archive offline, the trash list and the empty plan answer 503 archive_offline instead of an empty trash; a read-only archive still lists and plans but cannot be emptied. - The empty request is audited as trash_empty_requested: the job checks the plan again and may erase nothing, so the entry no longer claims an erase that has not happened. - API tests for these paths, a named subset emptied, sequence-entry restore and sequence_in_library, photos restored into a new sequence, viewer 403 on bulk routes and admin deletes of another user's photos. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit fa35831d55c44746f7f76e0cff262ed6aecf8e72)
This commit is contained in:
1 parent
316c182b19
commit
66c3662954
9 files changed
+350
-24
No files matched your search
@@ -25,7 +25,7 @@
|
||||
<data name="Admin.Activity.SequenceDeleted" xml:space="preserve"><value>{0} ha eliminato {1}</value></data>
|
||||
<data name="Admin.Activity.SequenceUpdated" xml:space="preserve"><value>{0} ha modificato una sequenza · {1}</value></data>
|
||||
<data name="Admin.Activity.ServerSettings" xml:space="preserve"><value>{0} ha modificato le impostazioni del server</value></data>
|
||||
<data name="Admin.Activity.TrashEmptied" xml:space="preserve"><value>{0} ha svuotato il cestino · {1}</value><comment>long</comment></data>
|
||||
<data name="Admin.Activity.TrashEmptyRequested" xml:space="preserve"><value>{0} ha chiesto di svuotare il cestino · {1}</value><comment>long</comment></data>
|
||||
<data name="Admin.Activity.TrashRestored" xml:space="preserve"><value>{0} ha ripristinato {1} dal cestino</value><comment>long</comment></data>
|
||||
<data name="Admin.Activity.UserCreated" xml:space="preserve"><value>{0} ha creato l'utente {1}</value></data>
|
||||
<data name="Admin.Activity.UserDeleted" xml:space="preserve"><value>{0} ha eliminato l'utente {1}</value></data>
|
||||
@@ -360,7 +360,7 @@
|
||||
<data name="Admin.Logs.Action.SequenceUpdated" xml:space="preserve"><value>Sequenza modificata</value></data>
|
||||
<data name="Admin.Logs.Action.ServerDiagnostics" xml:space="preserve"><value>Diagnostica esportata</value></data>
|
||||
<data name="Admin.Logs.Action.ServerSettings" xml:space="preserve"><value>Impostazioni server</value></data>
|
||||
<data name="Admin.Logs.Action.TrashEmptied" xml:space="preserve"><value>Cestino svuotato</value></data>
|
||||
<data name="Admin.Logs.Action.TrashEmptyRequested" xml:space="preserve"><value>Svuotamento richiesto</value></data>
|
||||
<data name="Admin.Logs.Action.TrashRestored" xml:space="preserve"><value>Ripristino dal cestino</value></data>
|
||||
<data name="Admin.Logs.Action.UserCreated" xml:space="preserve"><value>Utente creato</value></data>
|
||||
<data name="Admin.Logs.Action.UserDeleted" xml:space="preserve"><value>Utente eliminato</value></data>
|
||||
|
||||
Reference in new issue
Block a user