Opened 10 years ago
Closed 10 years ago
#23886 closed Bug (fixed)
Accessing obsolete documentation page throws an exception
Reported by: | Tim Graham | Owned by: | Ola Sitarska |
---|---|---|---|
Component: | *.djangoproject.com | Version: | |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Accessing an old version of the documentation like https://docs.djangoproject.com/en/1.2/faq/install/ causes an exception:
IOError: [Errno 2] No such file or directory: Path('/home/www/www/data/docbuilds/en/1.2/_built/json/globalcontext.json')
I think we should return HTTP 410 ("Gone") instead of a 500 page.
Change History (2)
comment:1 by , 10 years ago
Has patch: | set |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
As I was reviewing the PR and code, I realized this is because the docbuilds
directory on the server contains a checkout for 1.2, but the docs build doesn't work. After deleting that directory, the docs for 1.2 404 as expected. The checkout won't be recreated because the DocumentRelease
for 1.2 has been deleted. So I think we can resolve this without any code changes.
PR: https://github.com/django/djangoproject.com/pull/137