Skip to content

Commit

Permalink
fix: improve handling malformed new specific ipr submissions (ietf-to…
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Oct 4, 2023
1 parent 9a09bf1 commit a97f306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ietf/ipr/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def clean(self):
cleaned_data = super().clean()
revisions = cleaned_data.get("revisions")
document = cleaned_data.get("document")
if not document.name.startswith("rfc"):
if not document:
self.add_error("document", "Identifying the Internet-Draft or RFC for this disclosure is required.")
elif not document.name.startswith("rfc"):
if revisions.strip() == "":
self.add_error("revisions", "Revisions of this Internet-Draft for which this disclosure is relevant must be specified.")
return cleaned_data
Expand Down

0 comments on commit a97f306

Please sign in to comment.