Project

General

Profile

Actions

Bug #2501

closed

Error when using ampersand (sometimes)

Added by Bernhard Koschiček-Krombholz 9 months ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
Backend
Target version:
Start date:
2025-04-09
Estimated time:
Found in version:

Description

URL:
https://verlag.oeaw.ac.at/produkt/thunau-am-kamp-das-fruehmittelalterliche-graeberfeld-auf-der-oberen-holzwiese/601472?name=thunau-am-kamp-das-fruehmittelalterliche-graeberfeld-auf-der-oberen-holzwiese&product_form=4198

View:
https://demo.openatlas.eu/insert/external_reference

Description:
When entering the URL above in the Name field, I get a Transaction error.

Stacktrace:

psycopg2.errors.NotNullViolation: null value in column "name" of relation "entity" violates not-null constraint
DETAIL:  Failing row contains (256517, E31, null, null, 2025-04-09 13:02:04.336508, null, null, null, null, null, null, null, null, external_reference).

I guess, this is because of the sanitization, which is happening in the field. Without the & sign, it works.

Actions

Also available in: Atom PDF