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

Task query returns wrong JSON output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • jBPM 6.1.0.Final
    • jBPM 6.0.0.CR4
    • Runtime Engine
    • None
    • Hide

      1) Make something to create a task for katy (for example)

      2) Do a GET to

      http://[ip:port]/jbpm-console/rest/task/query

      with

      Accept: application/json
      Authorization: Basic a2F0eTprYXR5

      3) The response is:

      BODY:
      {"index":null,"commandName":null}
      HEADERS:
       Status Code: 200 OK
       Content-Type: application/json
       Date: Fri, 04 Oct 2013 10:09:50 GMT
       Server: Apache-Coyote/1.1
       Transfer-Encoding: chunked
      Show
      1) Make something to create a task for katy (for example) 2) Do a GET to http://[ip:port]/jbpm-console/rest/task/query with Accept: application/json Authorization: Basic a2F0eTprYXR5 3) The response is: BODY: {"index":null,"commandName":null} HEADERS: Status Code: 200 OK Content-Type: application/json Date: Fri, 04 Oct 2013 10:09:50 GMT Server: Apache-Coyote/1.1 Transfer-Encoding: chunked

    Description

      We downloaded the latest kie-services-remote and kie-services-client from https://github.com/droolsjbpm/droolsjbpm-integration/tree/master/kie-remote/kie-services-remote ("master" which compiles into kie-services-remote-6.1.0-SNAPSHOT.jar and kie-services-client-6.1.0-SNAPSHOT.jar), which now supports JSON output.

      We found two possible issues in the "task query" call.

      1) The output seems to be incorrect maybe due to an error (see below).

      2) It is not possibile to use pagination parameters like "page" because you get "page is an unknown and unsupported query param for the task query operation.". In fact in the TaskResource.java there is a check of the request parameters against an array of allowedQueryParams where "page" is not present. Probably the code:

              int [] pageInfo = getPageNumAndPageSize(params);
              Paginator<TaskSummaryImpl> paginator = new Paginator<TaskSummaryImpl>();

      should be before that check.

      Attachments

        Activity

          People

            marco.rietveld Marco Rietveld (Inactive)
            madmaz_jira Gaetano Mazzeo (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: