[Python-Dev] Bug report

16 views
Skip to first unread message

Nguyen Do Minh Duc

unread,
Jul 21, 2021, 12:18:40 PM7/21/21
to pytho...@python.org
Hi,

When I find what's new in 3.10 beta in https://docs.python.org/whatsnew/3.10.html
It redirected me to https://docs.python.org/3/whatsnew/3.10.html which shows 404 error not found nginx. Can you fix this?

Sincerely

xXPartOfMeXx

Patrick Reader

unread,
Jul 21, 2021, 12:28:01 PM7/21/21
to Nguyen Do Minh Duc, pytho...@python.org
This is because 3.10 is still in pre-release, which means the /3/ URL still uses the documentation for 3.9, which obviously does not contain a whatsnew page for the upcoming version. The correct URL is currently https://docs.python.org/3.10/whatsnew/3.10.html but the redirect should still probably be fixed

Patrick

On 21/07/2021 13:15, Nguyen Do Minh Duc wrote:
> Hi,
>
> When I find what's new in 3.10 beta in https://docs.python.org/whatsnew/3.10.html <https://docs.python.org/whatsnew/3.10.html>
> It redirected me to https://docs.python.org/3/whatsnew/3.10.html <https://docs.python.org/3/whatsnew/3.10.html> which shows 404 error not found nginx. Can you fix this?
>
> Sincerely
>
> xXPartOfMeXx
>
> _______________________________________________
> Python-Dev mailing list -- pytho...@python.org
> To unsubscribe send an email to python-d...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at https://mail.python.org/archives/list/pytho...@python.org/message/VOWYBW2OWVMHRDYNSIMHZSPNG7ATMCLU/
> Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-Dev mailing list -- pytho...@python.org
To unsubscribe send an email to python-d...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at https://mail.python.org/archives/list/pytho...@python.org/message/VGJKF5MMZTRYPXNUJ6JDMU4SCBUDAZFO/
Code of Conduct: http://python.org/psf/codeofconduct/

Kyle Stanley

unread,
Jul 21, 2021, 7:51:14 PM7/21/21
to Nguyen Do Minh Duc, Python Dev, Ernest W. Durbin III
Thanks for the report! I don't believe the code and/or config for the web server hosting docs.python.org is a public repo (may be mistaken), so I'll CC the director of infrastructure, Ee W. Durbin. I suspect they will know who to forward this to (or be able to fix it).

Best Regards,
--
--Kyle R. Stanley, Python Core Developer (what is a core dev?)
Pronouns: they/them (why is my pronoun here?)

Nick Coghlan

unread,
Jul 22, 2021, 6:52:27 AM7/22/21
to Kyle Stanley, Nguyen Do Minh Duc, Python Dev, Ernest W. Durbin III


On Thu, 22 Jul 2021, 9:47 am Kyle Stanley, <aero...@gmail.com> wrote:
On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc <gd.minh...@gmail.com> wrote:
Hi,

When I find what's new in 3.10 beta in https://docs.python.org/whatsnew/3.10.html
It redirected me to https://docs.python.org/3/whatsnew/3.10.html which shows 404 error not found nginx. Can you fix this?
 
Thanks for the report! I don't believe the code and/or config for the web server hosting docs.python.org is a public repo (may be mistaken), so I'll CC the director of infrastructure, Ee W. Durbin. I suspect they will know who to forward this to (or be able to fix it).

As far as I know, it's a bulk redirect of otherwise unmatched deep links to the Python 3 docs, so the OPs link won't work until 3.10 is officially released.

Until then, only the version specific and dev URLs will work.

Cheers,
Nick.



Best Regards,
--
--Kyle R. Stanley, Python Core Developer (what is a core dev?)
Pronouns: they/them (why is my pronoun here?)

_______________________________________________
Python-Dev mailing list -- pytho...@python.org
To unsubscribe send an email to python-d...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/

Ee Durbin

unread,
Jul 22, 2021, 12:27:54 PM7/22/21
to Kyle Stanley, Nguyen Do Minh Duc, Python Dev
On Wed, Jul 21, 2021 at 7:45 PM Kyle Stanley <aero...@gmail.com> wrote:
On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc <gd.minh...@gmail.com> wrote:
Hi,

When I find what's new in 3.10 beta in https://docs.python.org/whatsnew/3.10.html
It redirected me to https://docs.python.org/3/whatsnew/3.10.html which shows 404 error not found nginx. Can you fix this?
 
Thanks for the report! I don't believe the code and/or config for the web server hosting docs.python.org is a public repo (may be mistaken), so I'll CC the director of infrastructure, Ee W. Durbin. I suspect they will know who to forward this to (or be able to fix it).

Config that’s responsible for redirects lives at 
https://github.com/python/psf-salt/blob/master/salt/docs/config/nginx.docs-backend.conf if anyone is able to take a look before I’m able to ascertain what’s going on.

Do we know what the expected behavior is?

Nick Coghlan

unread,
Jul 23, 2021, 7:49:20 PM7/23/21
to Ee Durbin, Kyle Stanley, Nguyen Do Minh Duc, Python Dev

3.10 is still in its pre-release cycle, so pages that don't exist in the 3.9 documentation (like the 3.10 What's New doc) need a "dev" or "3.10" in their URL to be reachable.

Only when 3.10 is released and becomes the default version for the Python 3 docs would we expect the OP's link to work.

That said, if nginx config allows for rewrites that only happen when a 404 is about to be emitted otherwise, it would make sense to have "/3/" URLs fall back to "/dev/" URLs before giving up and emitting the 404.

Cheers,
Nick.


_______________________________________________
Python-Dev mailing list -- pytho...@python.org
To unsubscribe send an email to python-d...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Reply all
Reply to author
Forward
0 new messages