[Python-Dev] Re: Bug report

2021-07-23 Thread Nick Coghlan
On Fri, 23 Jul 2021, 2:22 am Ee Durbin,  wrote:

> On Wed, Jul 21, 2021 at 7:45 PM Kyle Stanley  wrote:
>
>> On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc <
>> gd.minhduc1...@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?
>

The expected behaviour is what is currently happening:
https://github.com/python/psf-salt/blob/6cdc61db0868d81514fde95ab5dfe11914e49754/salt/docs/config/nginx.docs-backend.conf#L19

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 -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/3M4KRVNWXSC56VJK2E7O45DX3UJLBYM5/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6IXBHB5V6ROSOZPWDJN3CZ6WHCUX44TW/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Bug report

2021-07-22 Thread Ee Durbin
On Wed, Jul 21, 2021 at 7:45 PM Kyle Stanley  wrote:

> On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc <
> gd.minhduc1...@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?
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/3M4KRVNWXSC56VJK2E7O45DX3UJLBYM5/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Bug report

2021-07-22 Thread Nick Coghlan
On Thu, 22 Jul 2021, 9:47 am Kyle Stanley,  wrote:

> On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc <
> gd.minhduc1...@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 -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-dev@python.org/message/WAJM6PFMX2DXOGPEC6I2QATAUT2GNJXC/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/EMZUUJMCAHH5A3NFVOIFFWXVCNY77LJN/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Bug report

2021-07-21 Thread Kyle Stanley
On Wed, Jul 21, 2021 at 12:19 PM Nguyen Do Minh Duc <
gd.minhduc1...@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).

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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/WAJM6PFMX2DXOGPEC6I2QATAUT2GNJXC/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Bug report

2021-07-21 Thread Patrick Reader
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 
> 
> 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
>
> ___
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at 
> https://mail.python.org/archives/list/python-dev@python.org/message/VOWYBW2OWVMHRDYNSIMHZSPNG7ATMCLU/
> Code of Conduct: http://python.org/psf/codeofconduct/
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/VGJKF5MMZTRYPXNUJ6JDMU4SCBUDAZFO/
Code of Conduct: http://python.org/psf/codeofconduct/