Skip to content

Commit 2a8fbb4

Browse files
committed
Added validation of successful draft title extraction on draft submission upload, to avoid a later exception when trying to store draft information for a draft with a null title.
- Legacy-Id: 7730
1 parent 4c03bc7 commit 2a8fbb4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/submit/forms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ def clean(self):
107107
if not self.parsed_draft.filename:
108108
raise forms.ValidationError("Draft parser could not extract a valid draft name from the .txt file")
109109

110+
if not self.parsed_draft.get_title():
111+
raise forms.ValidationError("Draft parser could not extract a valid title from the .txt file")
112+
110113
# check group
111114
self.group = self.deduce_group()
112115

0 commit comments

Comments
 (0)