testkube icon indicating copy to clipboard operation
testkube copied to clipboard

Dashboard - user-friendly messages for 401 (Unauthorized)

Open tkonieczny opened this issue 2 years ago • 1 comments

Describe the bug Currently, when user tries to execute actions that are blocked on the ingress level (most of the POST requests) like creating trigger the unknown error error is displayed. It's confusing, and the reason is completely unclear. Specific, permission-related error message should be displayed instead, like Unauthorized: no permissions to execute this action

To Reproduce Steps to reproduce the behavior:

  • Try to create a test trigger at demo.

tkonieczny avatar Jun 23 '23 12:06 tkonieczny

On the other side, I'm not sure if that should be the front-end. Shouldn't we rather return regular JSON error message from the ingress level?

rangoo94 avatar Oct 20 '23 13:10 rangoo94