Unauthorised operations fail silently

Created on 1 August 2024, 6 months ago

Problem/Motivation

I've set up a new helpdesk, and it synchronised users right after saving that config entity. That's great that way. I received a success message, but then was confused because the users haven't been available in the helpdesk at all. Then I checked the logs on Drupal and saw that the requests have been failing because they were unauthorised.

So, the success message and the failures are not matching reality.

Proposed resolution

There are several steps to take:

  • If there is an error and the user has the permission to administer helpdesks, then the log message should also be displayed on screen.
  • If there is a general error during a batch process, e.g. unauthorised, then we should cancel the batch as we know that all other items in the batch would fail with the same error.
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024