Parse FilePath in /get/<cid>/<oid>
endpoint #214
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#214
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We want to support these cases in HTTP Gateway:
<bucket-name>/<key>
<cid>/<oid>
<cid>/<FilePath>
and<cnr-name>/<oid>
<bucket-name>/*/
+<cnr-name>/*/
and<bucket-name>/
+<cnr-name>/
All these cases should be supported in
/get/<cid>/<oid>
. Right now we do not support<cnr-name>/<FilePath>
and maybe some combinations.This is useful when objects are stored by some 3rd-paty tools like [rclone] and received from HTTP gateway. These tools may support container nice names.
We can discuss moving index page somewhere different, e.g.
/index/<bucket-name>
. The only issue I see is that maybe download links will be a bit more convoluted (need to replace/index/
with/get/
)In my opinion, we can keep index page in
/get/
.I invite you for discussion: @dkirillov, @realloc, @nzinkevich
As I understand, after #207 and
It's getting harder to tell the difference between
<cid>/<invali-FilePath-that-ends-with-slash>
and index page<cid>/<prefix>
.I would like to see index on different enpoint, keep
/get/...
just for returning single object.For example github use
../tree/mater/dir
to list directory and../blob/master/dir/file.txt
to get it.Forgejo also has different endpoint to get raw files.
I had a discussion with @realloc about this. We pointed out that regular web-servers like nginx or apache usually try multiple options before sending response to the user. So we are not going to simplify gateway, instead it will be more complex, unfortunately.
So expected behavior is: