-
Notifications
You must be signed in to change notification settings - Fork 230
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
Fix objects with spaces in name not returned correctly fixes #1100 #1101
Fix objects with spaces in name not returned correctly fixes #1100 #1101
Conversation
The Uri.UnescapeDataString method has been replaced with the HttpUtility.UrlDecode method in the BucketOperations.cs file to correctly decode the URL. Additionally, the ListObjects_Test7 function has been added to the Program.cs and FunctionalTest.cs files to test whether ListObjects lists all objects matching a prefix with a space in a non-recursive manner.
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.
We need to add support for encoding-type=url for List() and keep the URL escape.
I'm not really sure what you mean. The new functional test I added fails without the change submitted. This is the same fix that was used for #343 There are no new failing tests because of these changes |
that's not what I was hoping to achieve with this PR. I want to add support for objects with spaces in their name. Maybe if you can give more details in separate issue then I can take a look. |
Try uploading an object with + in its name this PR will break. |
I've added a test for a prefix with a plus character in it. It passes before and after the change. |
d431df7
to
7e07ca1
Compare
The reason this works is its already added
|
Anything I can do to help get this PR merged? |
Sorry @heedfull |
no worries, thanks for merging. Any plans to ship a new version of nuget package? |
Yes. It is in the plan. |
do you have a failing test for the regression? anything I can help with? |
The Uri.UnescapeDataString method has been replaced with the HttpUtility.UrlDecode method in the BucketOperations.cs file to correctly decode the item Key. Additionally, the ListObjects_Test7 function has been added to the functional tests to test whether ListObjects lists all objects matching a prefix with a space in a non-recursive manner.