Delete a case in Bonita 2022.1

1
+1
-1

Hello !

When I update my bonita studio from 2021.2 to 2022.1

I can't delete my case and the request status code is 403

and I follow the API on the documentation with postman. the result is the same

Is it documentation error?

Comments

Submitted by romain.bioteau on Fri, 04/08/2022 - 15:42

Hi,

Are you sure the user you are using has the permission to delete a case ?

Submitted by Xyet on Fri, 04/08/2022 - 17:15

Yea, all users in the orgazition are admin.

Submitted by marielle.spiteri on Wed, 04/13/2022 - 01:54

Hi, are you trying to delete an open case or an archived case? Can you share the REST URL called?

openCase ID and archivedCase ID are different, see more explanation here: https://documentation.bonitasoft.com/bonita/2022.1/pages-and-forms/uid-c...

If you are trying to delete an archived Case, then you need to use the archivedCase ID.

HTH

Submitted by rdj_1414624 on Thu, 06/02/2022 - 16:00

Hi, did you find a solution? I have the same problem with 2022.1, unable to delete a case, from REST and even from WEB GUI in "Bonita Administrator Application"

Best regards

Submitted by Xyet on Thu, 06/02/2022 - 17:45

Hello,try to login super admin to request this rest api.

I don't know why,but I solved it by this way.

Submitted by rdj_1414624 on Tue, 06/07/2022 - 13:35

Hi Xyet, I've try and it works with install user. I can delete a case from REST.

But it's not a solution to use install user to be able to delete a Case!!! There is no GUI possiblities to delete Cases from install user.

Bonitasoft have to give a Solution.

Best regards

Submitted by rdj_1414624 on Tue, 06/07/2022 - 17:31

I saw an error in logfile (I use fitnesse account to detete the case which is an administrator):

2022-06-07T17:29:38,315+0200 | thp051 | DEBUG | [http-nio-8098-exec-4|91] o.b.e.a.PermissionServiceImpl - THREAD_ID=91 | HOSTNAME=thp051 | TENANT_ID=1 | Unauthorized access to DELETE bpm/case/2 attempted by fitnesse, required permissions: [case_delete]

1 answer

1
+4
-1
This one is the BEST answer!

Hi,

There is a regression in 2022.1 with the Admin case list page permissions.
Here is a workaround:

  1. Go to the bonita admin application, export the ressource "Bonita Admin Case List".
  2. Open the zip without unzip it. Modify the page.properties and add ", DELETE|bpm/case" to the list of the ressources.
  3. Change also the name and the displayName.
  4. In the bonita admin application in ressource page, click on the “install” button.
  5. Select the modified zip file and update the ressource.
  6. Go to the application page
  7. Click on the three dots button for the “Bonita Administrator Application”
  8. Delete “admin-case-list”
  9. Click on add page
  10. Select the previously installed page
  11. Put “admin-case-list” for the url field
  12. Delete “Case” under BPM in navigation space
  13. Click on add under Navigation
  14. In name input, put “Case” and in page input select the page that you just add.
  15. Logout and login and then the deletion of a case will be possible.

HTH
Romain

Comments

Submitted by romain.bioteau on Thu, 06/16/2022 - 18:06

Workaround added

Notifications