Don't return 200 code when object body is not found #158
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-s3-gw#158
Loading…
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?
As mentioned in #156 we get
200
http code because of writing header before reading object from FrostFS (if object id exists in the cache but not in storage we get 200 code and error in body)Expected Behavior
Get 404 status if
object not found
even when cache contains object headerCurrent Behavior
We get 200 OK but the body right away contains
NoSuchKey
errorPossible Solution
Probably we can write status code header right after init reading
Steps to Reproduce (for bugs)
Your Environment
Done in #164