cli: Make --range flag required in object hash #1569

Merged
fyrchik merged 2 commits from fyrchik/frostfs-node:fix-object-hash into master 2024-12-18 12:16:18 +00:00
Owner

Previously, object head was used if no range was provided.
This is wrong on multiple levels:

  1. We print an error if the checksum is missing in header,
    even though taking hash is possible.
  2. We silently ignore --salt parameter.
  3. --range is required for Object.RANGEHASH RPC, custom logic for one
    specific usecase has no value.

So we make it required and make CLI command follow more closely
the FrostFS API.

Previously, `object head` was used if no range was provided. This is wrong on multiple levels: 1. We print an error if the checksum is missing in header, even though taking hash is possible. 2. We silently ignore --salt parameter. 3. `--range` is required for Object.RANGEHASH RPC, custom logic for one specific usecase has no value. So we make it required and make CLI command follow more closely the FrostFS API.
requested reviews from storage-core-committers, storage-core-developers 2024-12-18 07:07:54 +00:00
fyrchik force-pushed fix-object-hash from 98c789c3ee to e44b84c18c 2024-12-18 07:17:09 +00:00 Compare
aarifullin approved these changes 2024-12-18 07:45:14 +00:00
elebedeva approved these changes 2024-12-18 11:42:23 +00:00
fyrchik merged commit e44b84c18c into master 2024-12-18 12:16:18 +00:00
fyrchik deleted branch fix-object-hash 2024-12-18 12:16:20 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-committers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1569
No description provided.