Use INTERNET_ALL_DRAFTS_ARCHIVE_DIR serve all IDs. Fixes #3308 and #3309. Commit ready for merge.

- Legacy-Id: 19166
This commit is contained in:
Kesara Rathnayake 2021-06-29 00:58:07 +00:00
parent 957afa9280
commit 6b9f0887bb

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