DataError when creating a process with a name going over 100 characters or a name filter over 150 characters
Sentry Issue: ARKINDEX-BACKEND-8C
StringDataRightTruncation: value too long for type character varying(100)
File "django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
DataError: value too long for type character varying(100)
(20 additional frame(s) were not displayed)
...
File "django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
The serializer field is probably missing a maximum length validation, and it is not shown in the API docs (Spectacular can detect MaxLengthValidator
).
The name_contains
field on DataImport
could probably be modified to match the maximum length of an element's name (250 characters).
Edited by Erwan Rouchet