You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No expectations of an IntegrityError, and the code is asking the database for permission instead of forgiveness. I think under concurrent usage of the database in multiple app instances, this will prevent proper error reporting. This shouldn't be anything significant (what are the odds you'd be registering the same email and get requests on multiple services and expect a decent error message), but good SQL patterns are important even when the odds of breakage are low.
I'm putting this into a discussion in case I missed something about how this is actually well-handled. If I didn't miss anything, I think it makes sense to turn into an issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The SQLAlchemy database adapter implements:
Which is used by the base user manager simply as:
No expectations of an IntegrityError, and the code is asking the database for permission instead of forgiveness. I think under concurrent usage of the database in multiple app instances, this will prevent proper error reporting. This shouldn't be anything significant (what are the odds you'd be registering the same email and get requests on multiple services and expect a decent error message), but good SQL patterns are important even when the odds of breakage are low.
I'm putting this into a discussion in case I missed something about how this is actually well-handled. If I didn't miss anything, I think it makes sense to turn into an issue.
Beta Was this translation helpful? Give feedback.
All reactions