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

Test/rest put acl canned #985

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Test/rest put acl canned #985

merged 1 commit into from
Dec 16, 2024

Conversation

lrm25
Copy link
Contributor

@lrm25 lrm25 commented Dec 12, 2024

No description provided.

@lrm25 lrm25 force-pushed the test/rest_put_acl_canned branch 2 times, most recently from c1508fa to 945ddbf Compare December 12, 2024 21:04
Copy link

@anodelman anodelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a simple nit.

-o "$OUTPUT_FILE")
curl_command+=(curl -ks -w "\"%{http_code}\"" -X PUT "$AWS_ENDPOINT_URL/$bucket_name?acl=")
if [ -n "$CANNED_ACL" ]; then
curl_command+=(-H "\"Authorization: AWS4-HMAC-SHA256 Credential=$aws_access_key_id/$year_month_day/$aws_region/s3/aws4_request,SignedHeaders=host;x-amz-acl;x-amz-content-sha256;x-amz-date,Signature=$signature\"")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a big chunk of shared string here between this and the next section of the if/else. Can stick in a var and then just add on the different bit.

@lrm25 lrm25 force-pushed the test/rest_put_acl_canned branch from 675792f to 10decc0 Compare December 13, 2024 00:31
@benmcclelland benmcclelland merged commit 60700e3 into main Dec 16, 2024
26 checks passed
@benmcclelland benmcclelland deleted the test/rest_put_acl_canned branch December 16, 2024 17:18
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.

3 participants