Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ben/s3proxy fixes #1091

Merged
merged 2 commits into from
Feb 27, 2025
Merged

Ben/s3proxy fixes #1091

merged 2 commits into from
Feb 27, 2025

Conversation

benmcclelland
Copy link
Member

No description provided.

The s3 sdk expects the version id and other input options to be
nil when not specified. Otherwise it incorrectly accepts the ""
string as the requested input option.

This just sets the version id and otehr options back to nil if
its "" from the s3api controller.
Updated the convertObjects function to initialize the result slice
with a length of 0 and a capacity equal to the length of the input
slice (objs).

This fixes the problem where the results were being appended to
a slice that already contained 0 value entries for the
preallocated length.
@benmcclelland benmcclelland merged commit c443d98 into main Feb 27, 2025
24 checks passed
@benmcclelland benmcclelland deleted the ben/s3proxy-fixes branch February 27, 2025 19:57
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