Skip to content

fix: Change destination encoding to percent encoding - #9334

Merged
mgallien merged 3 commits into
masterfrom
bugfix/encoding
Jan 22, 2026
Merged

fix: Change destination encoding to percent encoding#9334
mgallien merged 3 commits into
masterfrom
bugfix/encoding

Conversation

@Rello

@Rello Rello commented Jan 20, 2026

Copy link
Copy Markdown
Collaborator

fixes #9333

Percent-encoded the chunked upload Destination header so literal % sequences in remote paths are preserved, preventing chunked upload failures for special-character folders

@Rello Rello added this to the 4.1.0 milestone Jan 20, 2026
@Rello Rello added the bug label Jan 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-9334.zip

Digest: sha256:9709ce1998d861a508db62b193eb1c049702fc642a31557012181014037997f2

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien
mgallien enabled auto-merge January 22, 2026 09:14
@mgallien
mgallien merged commit 375fc85 into master Jan 22, 2026
20 of 22 checks passed
@mgallien
mgallien deleted the bugfix/encoding branch January 22, 2026 10:11
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)
3 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

nilsding added a commit that referenced this pull request Mar 10, 2026
sabre/dav does not seem to approve of percent-encoded base URLs (e.g.
`http%3A//nextcloud.local/...`), it will then consider them as absolute
paths and fail.

--> adapt fix from #9334 to only encode the remote path, as sabre parses
those paths just fine.

Resolves: #9582

Signed-off-by: Jyrki Gadinger <[email protected]>
nilsding added a commit that referenced this pull request Mar 11, 2026
sabre/dav does not seem to approve of percent-encoded base URLs (e.g.
`http%3A//nextcloud.local/...`), it will then consider them as absolute
paths and fail.

--> adapt fix from #9334 to only encode the remote path, as sabre parses
those paths just fine.

Resolves: #9582

Signed-off-by: Jyrki Gadinger <[email protected]>
backportbot Bot pushed a commit that referenced this pull request Mar 11, 2026
sabre/dav does not seem to approve of percent-encoded base URLs (e.g.
`http%3A//nextcloud.local/...`), it will then consider them as absolute
paths and fail.

--> adapt fix from #9334 to only encode the remote path, as sabre parses
those paths just fine.

Resolves: #9582

Signed-off-by: Jyrki Gadinger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Files larger than 100 MB fail to upload in directories with special characters in their names (e.g., SQ-0.5%BF-150).

2 participants