Skip to content

posixfs, s3, sftp: URL-unquote#131

Merged
ThomasWaldmann merged 3 commits intoborgbackup:masterfrom
ThomasWaldmann:url-unquote
Mar 12, 2026
Merged

posixfs, s3, sftp: URL-unquote#131
ThomasWaldmann merged 3 commits intoborgbackup:masterfrom
ThomasWaldmann:url-unquote

Conversation

@ThomasWaldmann
Copy link
Copy Markdown
Member

@ThomasWaldmann ThomasWaldmann commented Mar 6, 2026

Fixes #132.

URL components might be URL-quoted (URL-encoded), thus we need to unquote them if we split the URL into its components.

For example, a space in a path would be encoded as %20.

rclone is different: we get rclone:remote_spec and remote_spec is in the rclone-specific format that we just pass through "as is" to rclone.

@ThomasWaldmann
Copy link
Copy Markdown
Member Author

@alexandru-bagu @mikemrm @ncw could you please review the URL-unquoting?

Guess some unquote-calls were missing for S3 (and also for file: and sftp:), but for rclone: just pass-through "as is" is correct.

@ThomasWaldmann
Copy link
Copy Markdown
Member Author

ThomasWaldmann commented Mar 6, 2026

See also: borgbackup/borg#9408

URL components might be URL-quoted (URL-encoded), thus we need to unquote them if we split the URL into its components.

For example, a space in a path would be encoded as %20.

rclone is different: we get rclone:remote_spec and remote_spec is in the rclone-specific format that we just pass through "as is" to rclone.
@ThomasWaldmann ThomasWaldmann added this to the 0.3.2 milestone Mar 8, 2026
@ThomasWaldmann ThomasWaldmann merged commit d5878c9 into borgbackup:master Mar 12, 2026
8 checks passed
@ThomasWaldmann ThomasWaldmann deleted the url-unquote branch March 12, 2026 23:51
@ThomasWaldmann ThomasWaldmann modified the milestones: 0.3.2, 0.4.0 Apr 4, 2026
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.

use urlunquote

2 participants