Delete a case in Bonita 2022.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?

1 Like

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

Hi,

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

Yea, all users in the orgazition are admin.

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-case-overview-tutorial#_is_there_an_existing_archived_case_for_our_caseid

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

HTH

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

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

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

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

 

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]

 

 

Workaround added