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

Error 500 after incorrect passphrase passed for submission decryption #392

Closed
matthew-white opened this issue Aug 6, 2021 · 0 comments
Closed

Comments

@matthew-white
Copy link
Member

Filing an issue related to this forum post: https://forum.getodk.org/t/odk-cental-returns-500-if-encrypted-submission-export-is-called-multiple-times-with-incorrect-passphrase/33407. This issue has also shown up in Sentry: https://sentry.io/organizations/getodk/issues/2379582792. First reported at ropensci/ruODK#30 (comment)

When a project uses managed encryption, submission decryption requires a passphrase. If you pass an incorrect passphrase, Backend is designed to return a 400.12 Problem. However, in some cases (for example, if the user tries an incorrect passphrase 3–4 times), the actual result is an error 500 and a database error in the logs.

This issue was first reported for v1.1 when we were using Knex. However, it still seems to be an issue in v1.2 with Slonik. Slonik throws a ConnectionError:

Backend log

See the forum post for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant