-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: fix overriding of the Timestamp
container attribute
#2985
cli: fix overriding of the Timestamp
container attribute
#2985
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are also --name
and --global-name
attributty flags, they should be treated the same
also #1339 (comment) suggests to cover object attributes similarly within this issue, the current one is not enough to close the issue
a4f192d
to
25c2b07
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2985 +/- ##
==========================================
- Coverage 22.89% 22.87% -0.03%
==========================================
Files 785 785
Lines 58780 58806 +26
==========================================
- Hits 13460 13454 -6
- Misses 44441 44471 +30
- Partials 879 881 +2 ☔ View full report in Codecov by Sentry. |
25c2b07
to
43450f5
Compare
43450f5
to
46ce633
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@End-rey resolve conflicts and go
Add a check for the `Timestamp` and the `Name` container attributes, so there will be an error when you create a container with the `Timestamp` attribute without the `--disable-timestamp` flag or use the `Name` attribute, which is not equal to the `--name` flag. Add a check for the `Timestamp`, the `FileName` and the `__NEOFS__EXPIRATION_EPOCH` object attributes, so there will be an error when you put an object with the `Timestamp` attribute without the `--disable-timestamp` flag, with the `FileName` attribute without the `--disable-filename` flag or use the `__NEOFS__EXPIRATION_EPOCH` attribute, which is not equal to the expiration epoch from '--expire-at' or '--lifetime' flags. Move logic with expiration epoch attribute to `parseObjectAttrs` function. Closes #1339. Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Check for the key and value of the container attributes for emptiness to prevent panic in the sdk. Check for the key and value of the object attributes for emptiness to prevent error from rpc. Signed-off-by: Andrey Butusov <andrey@nspcc.io>
46ce633
to
455fccc
Compare
Closes #1339.