Skip to content

Failure to extract title causes NotNullException when validating a submission #7130

@jennifer-richards

Description

@jennifer-richards

Describe the issue

A txt-format submission whose title could not be extracted caused the exception below. This prevents the process_uploaded_submission_task() to fail, leaving the submission in the "validating" state until the cleanup task cancels it as timed out.

[2024-03-02 07:58:17,928: INFO/MainProcess] Task ietf.submit.tasks.process_uploaded_submission_task[0e170b37-18f9-4beb-8864-9d204523b28d] received
[2024-03-02 07:58:18,085: ERROR/ForkPoolWorker-93] Task ietf.submit.tasks.process_uploaded_submission_task[0e170b37-18f9-4beb-8864-9d204523b28d] r>
Traceback (most recent call last):
  File "/workspace/ietf/submit/utils.py", line 1411, in process_uploaded_submission
    process_and_validate_submission(submission)
  File "/workspace/ietf/submit/utils.py", line 1291, in process_and_validate_submission
    raise SubmissionError("Could not determine the title of the draft")
ietf.submit.utils.SubmissionError: Could not determine the title of the draft
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
psycopg2.errors.NotNullViolation: null value in column "title" of relation "submit_submission" violates not-null constraint
DETAIL:  Failing row contains (140758, , c2e2515f403fe71e96e6f963e3309fec, , draft-feng-nmop-network-incident-yang, null, , 01, null, null, [
    {
        "name": "Chong Feng",
        "email": "fengchon..., , , , .txt, null, null, 2024-03-02, null, , null, null, cancel).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 477, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 760, in __protected_call__
    return self.run(*args, **kwargs)
  File "/workspace/ietf/submit/tasks.py", line 24, in process_uploaded_submission_task
    process_uploaded_submission(submission)

Code of Conduct

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions