Skip to content

Permission denied error wrt project access rights gets converted into 502 error #7910

@wvangeit

Description

@wvangeit

Is there an existing issue for this?

  • I have searched the existing issues

Which deploy/s?

staging aws (e.g. staging.osparc.io)

Current Behavior

I noticed that when endpoints on the api server don't have access to a certain project, the read-access-denied error gets converted in a 502 error to the user, which just prints 'Bad request'.
It would be good if this conversion doesn't take place, instead the real 403 message is returned which would make debugging easier.
(not urgent / blocking)

Image

Expected Behavior

Return a 403 at the top level when any access denied error is returned

Steps To Reproduce

Access function job outputs that point to a project id for which the user doesnt have read access rights.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugbuggy, it does not work as expected

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions