-
Notifications
You must be signed in to change notification settings - Fork 300
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
add encoded filename as part of delete api url #3141
Conversation
I see what you are saying @prakashsvmx . so here we don't need to do any changes to the |
6cd8196
to
5410fb5
Compare
5410fb5
to
ea5aff5
Compare
@cesnietor so i have renamed |
Ahh awesome, thanks. |
@prakashsvmx Please check |
@allanrogerr vulns are unrelated to this change. They've been there for a while. We'll have to address them separately. |
Thats unfortunate. Vulnerabilities should take some priority IMO. |
@prakashsvmx Will encoding the filename of multiple objects be addressed in a followup PR? That is encoding the files name of the payload of |
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.
Tested. Please consider fixing vulnerabilities.
Fixed in #3146 |
for multiple files we send them in the payload, so no need to encode them @allanrogerr |
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.
tested LGTM
@cesnietor , @poornas
Console has different API (endpoint) urls for different scenarios to handle deletes.
the below url is modified to pass filename in case of single object delete, in url params
http://localhost:5005/api/v1/buckets/test-v-bucket/objects?prefix=MS50eHQ%3D&non_current_versions=true&bypass=false
Context, this is done so that we can do special operations with apis that have the prefix defined. single objects where being sent in the array so a single delete object api was needed.