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
Usually, if a database statement violates a uniqueness constraint, a 409.3 Problem is returned. However, if the duplicate value contains the character ), then a 500 error seems to be returned. This can be seen in this Sentry error. There, a form with a duplicate xmlFormId is uploaded, and the form ID contains ). I think the issue is that the ) causes the regular expression not to match:
Usually, if a database statement violates a uniqueness constraint, a 409.3 Problem is returned. However, if the duplicate value contains the character
)
, then a 500 error seems to be returned. This can be seen in this Sentry error. There, a form with a duplicatexmlFormId
is uploaded, and the form ID contains)
. I think the issue is that the)
causes the regular expression not to match:central-backend/lib/util/db.js
Lines 338 to 348 in 192557a
The error message in this case looks like this:
The
xmlFormId
contains a space and parentheses, but the Postgres error message didn't enclose the value in quotes or escape those characters.The text was updated successfully, but these errors were encountered: