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

Unable to retrieve case comments after closing the case

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • 7.23.0.Final
    • KieServer
    • None
    • NEW
    • NEW
    • Hide

      Currently the steps to reproduce the issue is as follows:
      1) Creating a new Case and adding a few case comments to the case, using the Kie server REST API (POST: /server/containers/

      {containerId}/cases/instances/{caseId}/comments).

      2) Then go and retrieve the case comments using the Kie Server REST API (GET: /server/containers/{containerId}

      /cases/instances/

      {caseId}

      /comments) and all should work since the case is still open.

      3) Now close the case

      4) Try to retrieve the case comments of the closed case and you will get the error message:

      org.kie.server.api.exception.KieServicesHttpException: Unexpected HTTP response code when requesting URI 'http://localhost:8080/kie-server/services/rest/server/containers/my_process_1.0.0-SNAPSHOT/cases/instances/CASE-0000000001/comments?sort=&page=0&pageSize=10'! Error code: 404, message: "Could not find case instance "CASE-0000000001""

      Show
      Currently the steps to reproduce the issue is as follows: 1) Creating a new Case and adding a few case comments to the case, using the Kie server REST API (POST: /server/containers/ {containerId}/cases/instances/{caseId}/comments). 2) Then go and retrieve the case comments using the Kie Server REST API (GET: /server/containers/{containerId} /cases/instances/ {caseId} /comments) and all should work since the case is still open. 3) Now close the case 4) Try to retrieve the case comments of the closed case and you will get the error message: org.kie.server.api.exception.KieServicesHttpException: Unexpected HTTP response code when requesting URI 'http://localhost:8080/kie-server/services/rest/server/containers/my_process_1.0.0-SNAPSHOT/cases/instances/CASE-0000000001/comments?sort=&page=0&pageSize=10'! Error code: 404, message: "Could not find case instance "CASE-0000000001""

    Description

      Users should be able to look at case comments after a case was closed/canceled. It is needed to decide if the case needs to be opened again. It is not needed when a case was destroyed.

      Attachments

        Activity

          People

            elguardian@gmail.com Enrique González Martínez (Inactive)
            bvanderwalt@vizuri.com Ben-Johan van der Walt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: