Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frozen user occasionnaly gets treated as a revoked user #9210

Open
vxgmichel opened this issue Dec 16, 2024 · 2 comments
Open

Frozen user occasionnaly gets treated as a revoked user #9210

vxgmichel opened this issue Dec 16, 2024 · 2 comments
Labels
A-Server Area: Parsec Server C-Bug Issue related to a bug I-Python Impact: Python-related stuff

Comments

@vxgmichel
Copy link
Contributor

For instance:

match row["user_is_frozen"]:
case False:
pass
case True:
return VlobUpdateBadOutcome.AUTHOR_REVOKED
case unknown:
assert False, repr(unknown)

This can be fixed by adding a corresponding VlobUpdateBadOutcome.AUTHOR_FROZEN outcome, although this is adding more noise for very little gain. Instead, it is enough to check this status in the authentication layer. This is already done and returning the correct 462 HTTP status.

Note that there is a cache mechanism for the authenticated info, although the cache gets cleared in a user gets frozen, so it shouldn't be a problem.

@FirelightFlagboy FirelightFlagboy added C-Bug Issue related to a bug I-Python Impact: Python-related stuff A-Server Area: Parsec Server B-Need-Information Blocker: The issue is incomplete and need more information to be provided labels Dec 18, 2024
@FirelightFlagboy
Copy link
Contributor

FirelightFlagboy commented Dec 18, 2024

@touilleMan, can you confirm or not if this code block should be removed ?

@mmmarcos
Copy link
Contributor

Discussed today: yes, this code should be removed. @touilleMan also suggests to add a comment in the revoked case to explain that frozen state is already checked on authentication.

@FirelightFlagboy FirelightFlagboy removed the B-Need-Information Blocker: The issue is incomplete and need more information to be provided label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Server Area: Parsec Server C-Bug Issue related to a bug I-Python Impact: Python-related stuff
Projects
None yet
Development

No branches or pull requests

3 participants