-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Component/s: Core IO
-
Release Notes Summary:DeltaLong values are correctly serialized in JSON
-
Sprint:nxcore 10.1.1
-
Story Points:2
When writing a document containing a DeltaLong value in JSON a ClassCastException occurs:
DocumentPropertyJsonWriter - ClassCastException: org.nuxeo.ecm.core.api.model.DeltaLong cannot be cast to java.lang.Long
Steps:
- set up a 9.10 Nuxeo instance with the nuxeo-quota addon
- drag and drop a File to personal workspace, get this File document's uuid
- Execute the following command
curl http://localhost:8080/nuxeo/site/automation/Document.CreateVersion -u Administrator:Administrator -H "X-NXRepository: default" -H "Content-Type: application/json+nxrequest" -H "X-NXDocumentProperties:dublincore,documents_size_statistics" -d '{"input":"b4a9454e-7173-45da-9f27-23d1b3c542d1","params": {"increment":"Major"} ,"context":{}}'