GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — RFC links are broken · Issue #95789 · python/cpython

RFC links are broken #95789

New issue
Copy link
New issue
Copy link
Closed
Closed
RFC links are broken#95789
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc direasytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@JulianMaurin
JulianMaurin
opened on Aug 8, 2022
Issue body actions

Documentation

Hello 👋
RFC hyperlinks present on https://docs.python.org are broken.

It's impacting the documentation version from 3.5.X to 3.10.X and any link to RFC.

Example:

  • https://docs.python.org/3.10/library/urllib.parse.html
  • https://docs.python.org/3.5/library/urllib.parse.html
  • https://docs.python.org/3.10/library/email.utils.html?highlight=rfc#email.utils.decode_rfc2231

Links are targeting https://tools.ietf.org/html/rfcXXXX.html (redirecting to https://www.rfc-editor.org/rfc/rfcXXXX.html.html).

The correct address seems to be https://www.rfc-editor.org/rfc/rfcXXXX.html but I notice the usage of https://datatracker.ietf.org/doc/html/rfcXXXX.html on the python 3.12.X documentation.

Not sure there is not already something about this issue, if it's the case sorry but I was not able to find it.

Activity

  1. JulianMaurin
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Aug 8, 2022
  2. hugovk commented on Aug 8, 2022

    @hugovk
    hugovk
    on Aug 8, 2022
    Member
    More actions

    The RFC links are built using the Sphinx RFC role, like :rfc:`1808`

    Sphinx itself expands these out to the full links.

    I see Sphinx updated the RFC base URL in sphinx-doc/sphinx#9858:

    -    'rfc_base_url': 'https://tools.ietf.org/html/',`
    +    'rfc_base_url': 'https://datatracker.ietf.org/doc/html/',

    As mentioned in that PR:

    The tools.ietf.org subdomain is being wound down and services are moving to
    datatracker.ietf.org. Links to RFC documents using the old subdomain are being
    redirected to datatracker; this updates the configured rfc_base_url to
    point to the current subdomain.

    Discussion: mailarchive.ietf.org/arch/msg/ietf/0n-6EXEmkTp3Uv_vj-5Vnm3o0bo

    That change was released in Sphinx 4.4.0 (released Jan 2022).


    main/3.12 and 3.11 are already on sphinx==4.5.0:

    • https://github.com/python/cpython/blob/main/Doc/requirements.txt
    • https://github.com/python/cpython/blob/3.11/Doc/requirements.txt

    But 3.10 is on sphinx==3.4.3:

    • https://github.com/python/cpython/blob/3.10/Doc/requirements.txt

    And 3.9 and 3.8 are on sphinx==2.4.4:

    • https://github.com/python/cpython/blob/3.9/Doc/requirements.txt
    • https://github.com/python/cpython/blob/3.8/Doc/requirements.txt

    And 3.7 is on Sphinx==2.3.1:

    • https://github.com/python/cpython/blob/3.7/Doc/Makefile
  3. hugovk
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    triagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.
    on Aug 8, 2022
  4. merwok
    added
    easy
    on Aug 8, 2022
  5. merwok commented on Aug 8, 2022

    @merwok
    merwok
    on Aug 8, 2022
    Member
    More actions

    Welcoming pull requests that add the RFC base URL setting to our sphinx config!

    Reacted by Julian Maurin
  6. JulianMaurin commented on Aug 8, 2022

    @JulianMaurin
    JulianMaurin
    on Aug 8, 2022
    Author
    More actions

    Welcoming pull requests that add the RFC base URL setting to our sphinx config!

    One my way 🚀

    Reacted by Hugo van Kemenade
  7. hugovk commented on Aug 8, 2022

    @hugovk
    hugovk
    on Aug 8, 2022
    Member
    More actions

    Ping also @rjsparks (author of the above-mentioned https://mailarchive.ietf.org/arch/msg/ietf/0n-6EXEmkTp3Uv_vj-5Vnm3o0bo/):

    It looks like there's a problem with the RFC redirects. For example:

    https://tools.ietf.org/html/rfc123.html

    redirects to

    https://www.rfc-editor.org/rfc/rfc123.html.html

    Note the double .html.html

    If I remove a surplus .html then it works:

    https://www.rfc-editor.org/rfc/rfc123.html

    @rjsparks - please could you check the redirects? Thank you!

    Reacted by Ezio Melotti
  8. JulianMaurin
    added 4 commits that reference this issue on Aug 8, 2022

    pythongh-95789: update documentation RFC base URL

    ec0af4f

    pythongh-95789: update documentation RFC base URL

    113dfec

    pythongh-95789: update documentation RFC base URL

    8173254

    pythongh-95789: update documentation RFC base URL

    947dd76
  9. JulianMaurin commented on Aug 8, 2022

    @JulianMaurin
    JulianMaurin
    on Aug 8, 2022
    Author
    More actions

    Ping also @rjsparks (author of the above-mentioned mailarchive.ietf.org/arch/msg/ietf/0n-6EXEmkTp3Uv_vj-5Vnm3o0bo):

    It looks like there's a problem with the RFC redirects. For example:

    https://tools.ietf.org/html/rfc123.html

    redirects to

    https://www.rfc-editor.org/rfc/rfc123.html.html

    Note the double .html.html

    If I remove a surplus .html then it works:

    https://www.rfc-editor.org/rfc/rfc123.html

    @rjsparks - please could you check the redirects? Thank you!

    It seems that the problem has already been solved. I assume that something has been done about the redirection?
    If it's the case, I'm interested about what was the fix, thanks

  10. rjsparks commented on Aug 8, 2022

    @rjsparks
    rjsparks
    on Aug 8, 2022
    More actions

    The redirect rule needed tuning.

    Reacted by Ezio Melotti and Hugo van Kemenade
  11. merwok commented on Aug 8, 2022

    @merwok
    merwok
    on Aug 8, 2022
    Member
    More actions

    Thanks for fixing it and letting us know!

    Keeping this ticket open for PRs, we might as well generate canonical links and avoid redirections.
    Links in people’s browsers may change from visited to unvisited, but I don’t think it’s a concern here.

    Reacted by Hugo van Kemenade and Ezio Melotti
  12. ambv
    added a commit that references this issue on Aug 12, 2022

    [3.10] gh-95789: update documentation RFC base URL (GH-95800)

    345daea
  13. ambv commented on Aug 12, 2022

    @ambv
    ambv
    on Aug 12, 2022
    Contributor
    More actions

    I don't think this should be addressed in security fixes-only branches as they don't include regular documentation updates. As such, I think this is fixed. Thanks, all! ✨ 🍰 ✨

    Reacted by Éric, Julian Maurin and Hugo van Kemenade
  14. ambv
    closed this as completedon Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc direasytriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.