Skip to content

bpo-43433: Preserve query and fragment in the URL of the server in ServerProxy. - #25057

Merged
corona10 merged 1 commit into
python:masterfrom
serhiy-storchaka:xmlrpc-urlunsplit
Mar 29, 2021
Merged

corona10 merged 1 commit into
python:masterfrom
serhiy-storchaka:xmlrpc-urlunsplit

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Mar 28, 2021 •

Copy link
Copy Markdown
Member

@kynan kynan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this LGTM and addresses kynan/dokuwikixmlrpc#8 where the issue was originally reported.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for adding tests!

@corona10
corona10 merged commit c1b073a into python:master Mar 29, 2021
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @serhiy-storchaka for the PR, and @corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 29, 2021
…rverProxy. (pythonGH-25057)

(cherry picked from commit c1b073a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-25068 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this pull request Mar 29, 2021
…rverProxy. (GH-25057)

(cherry picked from commit c1b073a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@Julien00859

Copy link
Copy Markdown

Hello there,

For the record, the fragment is client-side only, it should not be sent to the server.

Citing wikipedia:

Clients are not supposed to send URI fragments to servers when they retrieve a document, and without help from a local application (see below) fragments do not participate in HTTP redirections.

Citing the related RFC 3986 - URI

the fragment identifier is not used in the scheme-specific processing of a URI; instead, the fragment identifier is separated from the rest of the URI prior to a dereference, and thus the identifying information within the fragment itself is dereferenced solely by the user agent, regardless of the URI scheme.

@serhiy-storchaka
serhiy-storchaka deleted the xmlrpc-urlunsplit branch July 1, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants