-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix/when s_preservePathSeparators enabled #3619
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
Conversation
|
|
||
| auto putObjectRequest = PutObjectRequest() | ||
| .WithBucket("velvetunderground") | ||
| .WithKey("////stephanie////says////////////that////////she//wants///////to/know.txt"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think we want to remove this test case. Its still a valuable test case, i think we just want to add more test cases. additionally can you add a test case for .txt// to make sure that it works for many slashes and not just one
25e0bcf to
58f1f33
Compare
| } | ||
|
|
||
| if (m_pathSegments.empty() || m_pathHasTrailingSlash) | ||
| if (m_pathSegments.empty()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you change this?
if (m_pathSegments.empty() || m_pathHasTrailingSlash)
{
path.push_back('/');
}it is functionally the same as
if (m_pathSegments.empty())
{
path.push_back('/');
}
else if (m_pathHasTrailingSlash)
{
path.push_back('/');
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right - this was a mistake while trying to change the code back. Updating now.
Issue #3618
Description of changes: Fixed trailing slash preservation logic in URI parsing to correctly handle both S3 object keys with trailing slashes and SNS signature compatibility when s_
preservePathSeparators is enabled.
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.