Steps to reproduce
- Create a File document and populate the files:files metadata with some items
- Make the following REST call to update the newly created document - change the id in the URL
- observe, in the UI or in the REST response, that the files:files metadata is now empty
The problem is due to an incorrect JSON body, where the uid is missing.
However an incorrect body should raise an error, not provoke a data loss
Expected behavior: return an error to inform the user that the request is invalid (JSON body invalid)