Add extra checks for as:filetype structure values if a user decides (still don't OK?) RAW edit JSON and remove keys #329
Labels
Danger Mr Robinson
Things so core to us that need extra care. Please submit automated tests?
Digital Preservation
Events and Subscriber
Files
Never old, always fresh
Milestone
What?
We actually depend on a sane as:document, as:image etc internal structure. For checksumming, for sorting, etc. Of course archipelago will recreate it if you delete the whole thing and is very good at managing file related info. But there is a catch. If a user goes and edits/removes important keys from there, like the UUID, the parent Key where it is stored, the name! Then our code will fail.
An example from the wild that @alliomeria shared with me relates to "sorting" files when someone removed the "name" key
I can touch the current File Persister Service and be more thorough but I can't auto fix when people intentionally edit the JSON (the variations are infinite), so I will avoid the errors but generate a BIG/LARGE
Log warning. Which also means: read your logs
The text was updated successfully, but these errors were encountered: