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

Fix workflow array variable deserialization on REST APIs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.0-HF24, 7.10-HF02, 8.1
    • Fix Version/s: None
    • Component/s: Workflow

      Description

      In the Choose Participants task for the parallel review, the participants/assignees must be supplied as a quoted array ("[/"user/"]"), but if you make the mistake of passing it as a regular array (["user"]), it won't issue an error.

      Instead, the server proceeds, but when you request the next task, there are none to be found for that worklfow. Debugging this can be time consuming.

      Ideally, we should not have to pass a quoted array ("[/"user/"]") but an true array.

      This behavior has been coded from the beginning in the whole stack, see:

      Note that it affects both the REST API and the automation api (/nuxeo-routing-core/src/main/java/org/nuxeo/ecm/platform/routing/core/api/operation/StartWorkflowOperation.java)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                grenard Guillaume Renard
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: