Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
jennifer-richards opened this issue Mar 2, 2024 · 0 comments · Fixed by #7131
Closed
1 task done
Assignees
Labels

Comments

@jennifer-richards
Copy link
Member

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

@jennifer-richards jennifer-richards self-assigned this Mar 2, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant