Treat FilePath attribute with leading slash #197
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#197
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?
Is your feature request related to a problem? Please describe.
We've done some changes for FilePath attribute in #174, let's keep going.
Specification define that
FilePath
attribute should start with leading slash: linkDescribe the solution you'd like
When attribute key is a
FilePath
, add leading/
to the attribute value if it is missing.During fallback search in #174, do not modify attribute value, thus do not add leading slash.
Describe alternatives you've considered
Do nothing.
Additional context
Right now clients must use double leading slashes to access such FilePath objects, e.g.
/path/to/file.jpg
is accessed by/get_by_attribute/{cid}/FilePath//path/to/file.jpg
query. Some clients merge double slashes into one and it leads to 404 response from gateway.