Skip to content

input: use parse_uri_raw for VMX SSH URIs to preserve %2f#143

Open
ssahani wants to merge 1 commit intolibguestfs:masterfrom
ssahani:preserve-path
Open

input: use parse_uri_raw for VMX SSH URIs to preserve %2f#143
ssahani wants to merge 1 commit intolibguestfs:masterfrom
ssahani:preserve-path

Conversation

@ssahani
Copy link
Copy Markdown
Contributor

@ssahani ssahani commented Feb 26, 2026

Use Xml.parse_uri_raw when parsing VMX SSH URIs so that percent-encoded characters like %2f are preserved in the path. On VMFS/ESXi, %2f is literal in filenames and must not be decoded.

Fixes: https://issues.redhat.com/browse/RHEL-136481

Uses: libguestfs/libguestfs-common#21

Use Xml.parse_uri_raw when parsing VMX SSH URIs so that
percent-encoded characters like %2f are preserved in the path.
On VMFS/ESXi, %2f is literal in filenames and must not be decoded.

Fixes: https://issues.redhat.com/browse/RHEL-136481
Signed-off-by: Susant Sahani <ssahani@redhat.com>
@rwmjones
Copy link
Copy Markdown
Member

Please take a look at my comment here: https://issues.redhat.com/browse/RHEL-136481?focusedId=29157086&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-29157086

This needs more investigation as to whether it's really a bug at all, and how existing users behave, before we jump the gun with a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants