Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24088

JSON serialization fails on DeltaLong values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 8.10-HF23, 9.10-HF01, 10.1
    • Component/s: Core IO

      Description

      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":{}}' 
        

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.