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

ORM error when accessing an invalid authorized entry #474

Open
fluffy-critter opened this issue Nov 1, 2021 · 0 comments
Open

ORM error when accessing an invalid authorized entry #474

fluffy-critter opened this issue Nov 1, 2021 · 0 comments
Labels
auth Issues pertaining to authenticated access to private content bug Something isn't working

Comments

@fluffy-critter
Copy link
Collaborator

Expected Behavior

When trying to access an invalid entry (i.e. the file has been deleted or the entry-ID is inconsistent) that requires authorization, the database record should get expunged before attempting to update the auth log.

Current Behavior

If there's a stray entry with an ID mismatch (due to weird edge-case race conditions), an attempt at accessing the entry will delete the item from the database, but then attempting to log the access results in a database error, which rolls back the transaction.

Possible Solution

Steps to Reproduce (for bugs)

Context

@fluffy-critter fluffy-critter added bug Something isn't working auth Issues pertaining to authenticated access to private content labels Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issues pertaining to authenticated access to private content bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant