Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-164

Fix entity-type detection when deserializing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: REST

      Description

      When we don't know the java type at compilation (automation and/or adapter cases), the nuxeo response converter try to extract entity-type from response to deduce the java type to give to Jackson.

      There's a bug in the regexp used to get entity-type, following json will return task instead of tasks:

      {
      	"entity-type": "tasks",
      	"entries": [{
      		"entity-type": "task",
      	}]
      }
      

      Note: converter will also try to get it from header, but this doesn't fully work server side -> remove this part.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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, 15 minutes
                  1h 15m