Merged in [19166] from krathnayake@ietf.org:

Use INTERNET_ALL_DRAFTS_ARCHIVE_DIR serve all IDs. Fixes #3308 and #3309.
 - Legacy-Id: 19171
Note: SVN reference [19166] has been migrated to Git commit 6b9f0887bb
This commit is contained in:
Robert Sparks 2021-06-30 19:24:56 +00:00
commit 688f938ce2

View file

@ -1038,7 +1038,7 @@ def build_file_urls(doc):
file_urls.append(("with errata", settings.RFC_EDITOR_INLINE_ERRATA_URL.format(rfc_number=doc.rfc_number())))
file_urls.append(("bibtex", urlreverse('ietf.doc.views_doc.document_main',kwargs=dict(name=name))+"bibtex"))
else:
base_path = os.path.join(settings.INTERNET_DRAFT_PATH, doc.name + "-" + doc.rev + ".")
base_path = os.path.join(settings.INTERNET_ALL_DRAFTS_ARCHIVE_DIR, doc.name + "-" + doc.rev + ".")
possible_types = settings.IDSUBMIT_FILE_TYPES
found_types = [t for t in possible_types if os.path.exists(base_path + t)]
base = settings.IETF_ID_ARCHIVE_URL
@ -1228,4 +1228,4 @@ def update_doc_extresources(doc, new_resources, by):
old_res_strs, new_res_strs)
e.save()
doc.save_with_history([e])
return True
return True