Fix getting s3 object with the FrostFS OID name #166

Closed
opened 2024-11-19 14:23:44 +00:00 by alexvanin · 1 comment
Owner

Expected Behavior

User can get s3 object with the name 5rnoerMhK3kSxDEUh2FrSQvSW86P2deahSifFLxFBF9v which is a valid Object ID in FrostFS

Current Behavior

User gets error.

Possible Solution

We need to use S3 probe, which was introduced in #153.
According to probe, then call byNativeAddress or byS3Path function.

Steps to Reproduce (for bugs)

  1. Create public-read s3 bucket
  2. Upload object with the name of 5rnoerMhK3kSxDEUh2FrSQvSW86P2deahSifFLxFBF9v
  3. Try to get object with http gateway

Context

Regression

No

Your Environment

frostfs-http-gw v0.31.0-rc.6

## Expected Behavior User can get s3 object with the name `5rnoerMhK3kSxDEUh2FrSQvSW86P2deahSifFLxFBF9v` which is a valid Object ID in FrostFS ## Current Behavior User gets error. ## Possible Solution We need to use S3 probe, which was introduced in #153. According to probe, then call `byNativeAddress` or `byS3Path` function. ## Steps to Reproduce (for bugs) 1. Create public-read s3 bucket 2. Upload object with the name of `5rnoerMhK3kSxDEUh2FrSQvSW86P2deahSifFLxFBF9v` 3. Try to get object with http gateway ## Context ## Regression No ## Your Environment frostfs-http-gw v0.31.0-rc.6
alexvanin added the
bug
label 2024-11-19 14:23:44 +00:00
alexvanin added this to the v0.31.1 milestone 2024-11-19 14:24:14 +00:00
nzinkevich was assigned by alexvanin 2024-11-28 08:55:49 +00:00
alexvanin modified the milestone from v0.31.1 to v0.32.0 2024-12-10 11:25:14 +00:00
Author
Owner

Done in #173

Done in #173
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-http-gw#166
No description provided.