[#383] Fix request type determination #383

Merged
alexvanin merged 1 commits from mbiryukova/frostfs-s3-gw:bugfix/determine_req_type_0.29 into support/v0.29 2024-05-07 12:33:53 +00:00
Collaborator

Signed-off-by: Marina Biryukova m.biryukova@yadro.com

Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova self-assigned this 2024-05-06 10:23:48 +00:00
mbiryukova added 1 commit 2024-05-06 10:23:51 +00:00
/ DCO (pull_request) Successful in 1m46s Details
/ Vulncheck (pull_request) Failing after 1m57s Details
/ Builds (1.20) (pull_request) Successful in 2m44s Details
/ Builds (1.21) (pull_request) Successful in 1m33s Details
/ Lint (pull_request) Successful in 4m0s Details
/ Tests (1.20) (pull_request) Successful in 3m10s Details
/ Tests (1.21) (pull_request) Successful in 2m20s Details
9649387d89
[#383] Fix request type determination
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova requested review from storage-services-committers 2024-05-06 10:29:23 +00:00
mbiryukova requested review from storage-services-developers 2024-05-06 10:29:23 +00:00
mbiryukova force-pushed bugfix/determine_req_type_0.29 from 9649387d89 to db924cc56e 2024-05-06 11:33:50 +00:00 Compare
dkirillov approved these changes 2024-05-06 14:39:15 +00:00
mbiryukova force-pushed bugfix/determine_req_type_0.29 from db924cc56e to 9879f593c8 2024-05-06 18:28:01 +00:00 Compare
dkirillov approved these changes 2024-05-07 06:46:29 +00:00
r.loginov approved these changes 2024-05-07 11:14:24 +00:00
alexvanin reviewed 2024-05-07 11:45:52 +00:00
@ -192,3 +192,3 @@
}
if ind := strings.IndexByte(bktObj, '/'); ind != -1 {
if ind := strings.IndexByte(bktObj, '/'); ind != -1 && bktObj[ind+1:] != "" {

Why can't we just bktObj := strings.Trim(r.URL.Path, "/")?

Why can't we just `bktObj := strings.Trim(r.URL.Path, "/")`?

object may have '/' at the end, so we can't trim it.

object may have '/' at the end, so we can't trim it.
alexvanin marked this conversation as resolved
alexvanin approved these changes 2024-05-07 11:53:52 +00:00
mbiryukova force-pushed bugfix/determine_req_type_0.29 from 9879f593c8 to c0f959ece7 2024-05-07 12:22:40 +00:00 Compare
alexvanin merged commit c0f959ece7 into support/v0.29 2024-05-07 12:33:53 +00:00
alexvanin deleted branch bugfix/determine_req_type_0.29 2024-05-07 12:33:53 +00:00
alexvanin added this to the v0.29.0 milestone 2024-05-27 10:08:15 +00:00
Sign in to join this conversation.
There is no content yet.