CreateElementsWorkflow allows exceeding the name field length in the database
Sentry Issue: ARKINDEX-BACKEND-8V
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)
(21 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 process_name
field in the CreateElementsWorkflow API docs is marked as allowing 150 characters, when DataImport.name
only allows 100 characters. This field is not used by the frontend, but an API request can cause a 500 error:
cli.request('CreateElementsWorkflow', body={"corpus": "…", "process_name": "a" * 150})