Skip to content

VR-10149: Do not mask 403s/404s when updating registry entities#2018

Merged
convoliution merged 2 commits into
masterfrom
client/ml/more-lock
Mar 5, 2021
Merged

VR-10149: Do not mask 403s/404s when updating registry entities#2018
convoliution merged 2 commits into
masterfrom
client/ml/more-lock

Conversation

@convoliution
Copy link
Copy Markdown
Contributor

Due to an copy & paste error from _get_*(), the _update() method in registry entities displays ValueError: Model not found instead of propagating the 403 if the update operation is not allowed.

This was not caught by our tests because, in an effort to keep them simple, I used .delete() to check read-only permissions for all entities. Unfortunately, that is the one operation that doesn't go through _update() in registry entities.

@convoliution convoliution merged commit 5f7a58b into master Mar 5, 2021
@convoliution convoliution deleted the client/ml/more-lock branch March 5, 2021 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants