mirror of
https://github.com/nspcc-dev/neofs-http-gw.git
synced 2026-03-01 04:29:08 +00:00
Check usage of time.Time #80
Labels
No labels
I1
I3
I4
S2
S3
S4
U2
U2
U3
U4
blocked
bug
config
documentation
enhancement
go
good first issue
help wanted
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-http-gw#80
Loading…
Add table
Add a link
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?
Originally created by @alexvanin on GitHub (Oct 17, 2022).
Originally assigned to: @KirillovDenis on GitHub.
Gateway should live in the environment without NTP and pretty much unstable time flow.
In this issue collect all available places where things can go wrong with wall time and discuss it with @realloc and @alexvanin
@KirillovDenis commented on GitHub (Oct 18, 2022):
Currently, we use time.Time in the following cases:
Timestampand convert it toLast-Modifiedheadermodifiedtime to files in zip archive__NEOFS__EXPIRATION_EPOCHIt seems the problem is only the last case (expiration attribute). We support the following headers:
X-Attribute-Neofs-Expiration-Epoch: 100X-Attribute-Neofs-Expiration-Duration: 24h30mX-Attribute-Neofs-Expiration-Timestamp: 1637574797X-Attribute-Neofs-Expiration-RFC3339: 2021-11-22T09:55:49ZProbably we can keep only
Expiration-EpochandExpiration-Duration.@alexvanin commented on GitHub (Nov 1, 2022):
@KirillovDenis commented on GitHub (Nov 7, 2022):
1 - We already use it (
time.Since()).4 - It seems we can use the
Dateheader.