Investigate size computing in GetObjectAttributes #304

Open
opened 2024-02-02 13:23:55 +00:00 by dkirillov · 0 comments
Collaborator

In some cases (encryption, multipart) we have different client object size and frostfs object size. So we have the following function.

There is one place that should be validated.

Describe the solution you'd like

Check if we really need to change something in GetObjectAttributes and particularly here

Describe alternatives you've considered

No.

Additional context

Related to #165

## Is your feature request related to a problem? Please describe. In some cases (encryption, multipart) we have different client object size and frostfs object size. So we have the following [function](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/84af85ed67bdea3884dc8f3a3030295b8b6c338a/api/layer/util.go#L100). There is [one place](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/84af85ed67bdea3884dc8f3a3030295b8b6c338a/api/handler/attributes.go#L194) that should be validated. ## Describe the solution you'd like Check if we really need to change something in [GetObjectAttributes](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html) and particularly [here](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/84af85ed67bdea3884dc8f3a3030295b8b6c338a/api/handler/attributes.go#L194) ## Describe alternatives you've considered No. ## Additional context Related to #165
Sign in to join this conversation.
No Milestone
No Assignees
1 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-s3-gw#304
There is no content yet.