[#486] Fix PUT object with negative Content-Length #490
No reviewers
TrueCloudLab/storage-services-developers
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 milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#490
Loading…
Reference in a new issue
No description provided.
Delete branch "mbiryukova/frostfs-s3-gw:bugfix/negative_content_length"
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?
Closes #486
e8804e2df1
to72c680dd5e
@ -266,3 +269,4 @@
CreationTime: TimeNow(ctx),
CopiesNumber: p.CopiesNumbers,
}
if p.Size != nil {
What you think about keeping
p.Size
as an int, not a pointer, and usingp.Size > 0
instead ofp.Size != nil
?Isn't it the same but safer due to lack of pointers?
There may be a case (theoretically) when we put empty multipart object and should save 0 as a size
ognev referenced this pull request2024-09-16 10:05:28 +00:00