Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5169

REST Endpoint /tasks/users fails if process includes Human Task without actor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.Beta1, 7.0.0.Final
    • jBPM 6.4.0.Final
    • KieServer
    • None
    • NEW
    • NEW
    • Hide

      1) Create a process
      Start->User Task->End

      Fill in the name and task name, but leave the actor and groups field empty
      2) Build this project and create a KieContainer on the KieServer with it
      3) Call this endpoint:

      http://localhost:8080/kie-server/services/rest/server/containers/<CONTAINER_ID>/processes/definitions/<PROCESS_ID>/tasks/users

      It returns this in the browser:

      This page contains the following errors:
      
      error on line 1 at column 1: Document is empty
      Below is a rendering of the page up to the first error.
      

      -> Nothing is in the server.log

      I am not saying it makes sense to have Human Task without actor/group define, but the error needs to be better/more precise, so user can identify the issue

      Show
      1) Create a process Start->User Task->End Fill in the name and task name, but leave the actor and groups field empty 2) Build this project and create a KieContainer on the KieServer with it 3) Call this endpoint: http://localhost:8080/kie-server/services/rest/server/containers/ <CONTAINER_ID>/processes/definitions/<PROCESS_ID>/tasks/users It returns this in the browser: This page contains the following errors: error on line 1 at column 1: Document is empty Below is a rendering of the page up to the first error. -> Nothing is in the server.log I am not saying it makes sense to have Human Task without actor/group define, but the error needs to be better/more precise, so user can identify the issue

    Description

      Following rest endpoint:

      http://localhost:8080/kie-server/services/rest/server/containers/<CONTAINER_ID>/processes/definitions/<PROCESS_ID>/tasks/users

      fails if the <PROCESS_ID> includes a human tasks with empty 'actor' field.

      Attachments

        Issue Links

          Activity

            People

              swiderski.maciej Maciej Swiderski (Inactive)
              swiderski.maciej Maciej Swiderski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: