From 6b9f0887bb03240c73db2bcd8bf4a6ceb2bb3298 Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Tue, 29 Jun 2021 00:58:07 +0000 Subject: [PATCH] Use INTERNET_ALL_DRAFTS_ARCHIVE_DIR serve all IDs. Fixes #3308 and #3309. Commit ready for merge. - Legacy-Id: 19166 --- ietf/doc/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/doc/utils.py b/ietf/doc/utils.py index 46dd3b8e8..3b8dd1332 100644 --- a/ietf/doc/utils.py +++ b/ietf/doc/utils.py @@ -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 \ No newline at end of file + return True