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

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

    Details

    • Steps to Reproduce:
      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
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swiderski.maciej Maciej Swiderski
                  Reporter:
                  swiderski.maciej Maciej Swiderski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: