Skip to content

Test/website redirect - #2349

Merged
benmcclelland merged 1 commit into
mainfrom
test/website_redirect
Sep 14, 2026
Merged

benmcclelland merged 1 commit into
mainfrom
test/website_redirect

Conversation

@lrm25

@lrm25 lrm25 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@lrm25
lrm25 force-pushed the test/website_redirect branch 2 times, most recently from 7302115 to a51ff2a Compare September 8, 2026 13:18
Comment thread tests/drivers/complete_multipart_upload/complete_multipart_upload_s3api.sh Outdated
Comment thread tests/drivers/complete_multipart_upload/complete_multipart_upload_s3api.sh Outdated
Comment thread tests/drivers/complete_multipart_upload/complete_multipart_upload_s3api.sh Outdated
Comment thread tests/drivers/create_bucket/create_bucket_s3api.sh Outdated
Comment thread tests/drivers/create_bucket/create_bucket_s3api.sh Outdated
Comment thread tests/drivers/create_bucket/create_bucket_s3api.sh
Comment thread tests/drivers/create_bucket/create_bucket_s3api.sh Outdated
Comment thread tests/drivers/put_bucket_website/put_bucket_website_rest.sh Outdated
Comment thread tests/drivers/http.sh Outdated
@lrm25
lrm25 force-pushed the test/website_redirect branch 8 times, most recently from d6c4e8b to f3f1312 Compare September 10, 2026 17:56

@anodelman anodelman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

some final nits

Comment thread tests/drivers/complete_multipart_upload/complete_multipart_upload_rest.sh Outdated
Comment thread tests/drivers/complete_multipart_upload/complete_multipart_upload_s3api.sh Outdated
Comment thread tests/drivers/create_bucket/create_bucket_s3api.sh Outdated
@lrm25
lrm25 force-pushed the test/website_redirect branch 3 times, most recently from d52fb34 to f384991 Compare September 11, 2026 15:25
log 2 "error uploading part $i: $response"
return 1
fi
quoted_etag="$response"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think that you want

quoted_etag="\"$response\""

@lrm25 lrm25 Sep 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I double-checked, and it's returned double-quoted from S3, and therefore versitygw to match, e.g.:

# {
#     "ServerSideEncryption": "AES256",
#     "CopyPartResult": {
#         "ETag": "\"34018cfe8a897549bdd8b3028158520f\"",
#         "LastModified": "2026-09-11T21:51:11+00:00"
#     }
# }

It's confusing, but the technical value that S3 returns is already quoted. Quoting it again results in an error. But I added a comment to explain this better in the code.

log 2 "error uploading part $i: '$response'"
return 1
fi
quoted_etag="$response"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same here

quoted_etag="\"$response\""

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See above.

log 2 "error with multipart upload"
return 1
fi
if ! get_object "s3api" "$bucket" "${key}-copy" "${large_file}-copy"; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you want to get this to the TEST_FILE_FOLDER so that it gets cleaned up?

@lrm25 lrm25 Sep 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Checked, and the large_file param itself is passed in as a full path including this folder, but specified that it's the full path at the top of the function now.

@lrm25
lrm25 force-pushed the test/website_redirect branch 2 times, most recently from 211a9f5 to a4fabe3 Compare September 11, 2026 23:26
@lrm25
lrm25 force-pushed the test/website_redirect branch from a4fabe3 to 642b65f Compare September 13, 2026 14:36
@benmcclelland
benmcclelland merged commit fd8de62 into main Sep 14, 2026
142 checks passed
@benmcclelland
benmcclelland deleted the test/website_redirect branch September 14, 2026 15:06
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