Return valid md5 checksum in the header #205

Closed
opened 2023-09-07 14:38:10 +00:00 by alexvanin · 0 comments

Some libraries like jcloud, require md5 checksum in the e-tag or in the separate header. FrostFS S3 Gateway uses SHA-256 as e-tag and doesn't set md5 header, which leads to errors while using jcloud.

Describe the solution you'd like

Add a configuration flag to calculate valid md5 and store it in the tree service in S3 gateway runtime. Disable this behaviour by default.

!NB check if it is going to work with multipart upload objects

Describe alternatives you've considered

Replace e-tag encoding from SHA-256 to md5.

Additional context

Apps actually may not check md5 value at all. They might check only md5 format, nothing more.

## Is your feature request related to a problem? Please describe. Some libraries like [jcloud](https://github.com/apache/jclouds/blob/1252f1951f10c3bc47923184bbbb9d4aadc1b3fc/apis/s3/src/main/java/org/jclouds/s3/functions/ParseObjectMetadataFromHeaders.java#L66), require md5 checksum in the e-tag or in the separate header. FrostFS S3 Gateway uses SHA-256 as e-tag and doesn't set md5 header, which leads to errors while using jcloud. ## Describe the solution you'd like Add a configuration flag to calculate valid md5 and store it in the tree service in S3 gateway runtime. Disable this behaviour by default. > !NB check if it is going to work with multipart upload objects ## Describe alternatives you've considered Replace e-tag encoding from SHA-256 to md5. ## Additional context Apps actually may not check md5 value at all. They might check only md5 format, nothing more.
alexvanin added this to the v0.29.0 milestone 2023-09-08 10:31:10 +00:00
mbiryukova self-assigned this 2023-09-27 10:47:13 +00:00
alexvanin modified the milestone from v0.29.0 to v0.28.1 2023-12-07 13:03:45 +00:00
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#205
There is no content yet.