-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF08, 11.1, 2021.0
Steps to reproduce
- Define a document type with a multivalued complex field with 2 subfields:
- fichier: Blob
- name: String
- Deploy to Nuxeo
- Create a document with this type and set 2 values for the complex field
- Edit the document and remove the blob for the first element of the complex field. Save
- Observe the document was not updated
The corresponding payload for the request is almost empty{"entity-type":"document","uid":"7ff88b98-4263-4927-9cd7-2a85cb1fa748","properties":{}}
- Edit the document, remove the blob for the first element of the complex field and also change the String field. Save
- Observe only the String subfield has been updated
The corresponding payload for the request is{ "entity-type": "document", "uid": "7ff88b98-4263-4927-9cd7-2a85cb1fa748", "properties": { "complexmulti:complexe": [ { "fichier": { "name": "SimpleTable.xlsx", "mime-type": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "encoding": null, "digestAlgorithm": "MD5", "digest": "cfb77b8e91627e7c5006e75ce9b8dc20", "length": "6056", "data": "http://localhost:8080/nuxeo/nxfile/default/7ff88b98-4263-4927-9cd7-2a85cb1fa748/complexmulti:complexe/0/fichier/SimpleTable.xlsx?changeToken=13-0", "appLinks": [] }, "name": "fichier2" }, { "fichier": null, "name": "fichier7" } ] } }
Expected behavior: the blob must be removed from the complex field
It's interesting to note that the null value does not remove the blob from the property
=> there may be 2 distinct bugs here.
- is duplicated by
-
NXP-27074 nuxeo-file widget -- can't delete Blob from document
- Resolved
- is related to
-
NXP-25598 Do not remove attachments from Document when ignore Blob property in PUT requests
- Resolved
-
NXP-21125 Fix the call to PUT /nuxeo/api/v1/id not to reset the file:content property
- Resolved
- split to
-
ELEMENTS-980 Fix nuxeo-file widget in data-table editing
- Resolved