[#563] Ignore precondition headers with invalid date format #563
No reviewers
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#563
Loading…
Reference in a new issue
No description provided.
Delete branch "mbiryukova/frostfs-s3-gw:bugfix/precondition_headers"
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?
Signed-off-by: Marina Biryukova m.biryukova@yadro.com
04177c9936
toc526f7e33f
[#xxx] Ignore precondition headers with invalid date formatto [#563] Ignore precondition headers with invalid date format@ -138,13 +138,12 @@ func (h *handler) PatchObjectHandler(w http.ResponseWriter, r *http.Request) {
}
func parsePatchConditionalHeaders(headers http.Header) (*conditionalArgs, error) {
We don't need to return error now
@ -291,17 +291,16 @@ func checkPreconditions(info *data.ObjectInfo, args *conditionalArgs, md5Enabled
}
func parseConditionalHeaders(headers http.Header) (*conditionalArgs, error) {
We don't need to return error now
c526f7e33f
to1b8127abdb
@ -300,2 +295,2 @@
if args.IfModifiedSince, err = parseHTTPTime(headers.Get(api.IfModifiedSince)); err != nil {
return nil, err
if httpTime, err := parseHTTPTime(headers.Get(api.IfModifiedSince)); err == nil {
args.IfModifiedSince = httpTime
Should we log the case when we couldn't parse time? It would be nice to see I suppose
1b8127abdb
toe3141fc8e3
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings