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

Task endpoint should work if a task has a missing DocumentRoute

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF29, 11.1, 2021.0
    • Component/s: Workflow
    • Release Notes Summary:
      The Task endpoint gracefully handles missing DocumentRoute.
    • Backlog priority:
      600
    • Team:
      PLATFORM
    • Sprint:
      nxplatform 11.1.35, nxplatform 11.1.36, nxplatform 11.1.37
    • Story Points:
      2

      Description

      In some cases DocumentRoute documents can be deleted while Task documents referring to them still exist. If this case happens, the task endpoint will not return data when invoked for the user, whether the user has valid tasks or not.

      The task endpoint should fail gracefully when this happens – the tasks which are valid should as results.

      To reproduce:

      • Start a process on a document
      • Get the ID of the task assigned to the user
      • Verify that the new task shows up in the results of the task endpoint curl -u Administrator:Administrator localhost:8080/nuxeo/api/v1/task
      • Look in the Task document for the DocumentRoute id curl -u Administrator:Administrator localhost:8080/nuxeo/api/v1/id/19f5bff4-f562-485c-94d8-1d3c85700dc5 -H 'X-NXproperties: *' – look for routeInstanceDocId in nt:taskVariables
      • Delete the DocumentRoute document curl -u Administrator:Administrator localhost:8080/nuxeo/api/v1/id/19f5bff4-f562-485c-94d8-1d3c85700dc5 -X DELETE
      • Task endpoint request will fail curl -u Administrator:Administrator localhost:8080/nuxeo/api/v1/task

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              4 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 - 2 days, 6 hours
                2d 6h