Skip to content

fix(s3): trim multiple spaces to single space in original path header#61914

Open
leftybournes wants to merge 1 commit into
masterfrom
leftybournes/fix/s3_trim_multiple_spaces_in_original_path
Open

fix(s3): trim multiple spaces to single space in original path header#61914
leftybournes wants to merge 1 commit into
masterfrom
leftybournes/fix/s3_trim_multiple_spaces_in_original_path

Conversation

@leftybournes

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

The S3 API spec defines that x-amz-meta-original-path header needs spaces to be trimmed and multiple spaces need to be converted to a single space. This is to comply with the spec and fix it for some storage hosts that return a SignatureDoesNotMatch error.

The reference to the documentation can be found here in Task 1.4

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Kent Delante <kent@delante.me>

The spec defines that x-amz-meta-original-path header needs spaces to
be trimmed and multiple spaces need to be converted to a single
space. This is to comply with the spec and fix it for some storage
hosts that return a SignatureDoesNotMatch error when not done.
@leftybournes leftybournes added this to the Nextcloud 35 milestone Jul 8, 2026
@leftybournes leftybournes requested a review from a team as a code owner July 8, 2026 13:18
@leftybournes leftybournes requested review from Altahrim, ArtificialOwl, CarlSchwan and salmart-dev and removed request for a team July 8, 2026 13:18
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.

2 participants