Skip to content

Commit 5d8aa65

Browse files
committed
Added code to catch bad rev numbers for bibxml3 requests.
- Legacy-Id: 16963
1 parent c233f07 commit 5d8aa65

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/doc/views_doc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,8 @@ def document_bibxml(request, name, rev=None):
842842
if rev == h.rev:
843843
doc = h
844844
break
845+
if rev and rev != doc.rev:
846+
raise Http404("Revision not found")
845847

846848
try:
847849
doc_event = NewRevisionDocEvent.objects.get(doc__name=doc.name, rev=(rev or latest_rev))

0 commit comments

Comments
 (0)