[
https://issues.apache.org/jira/browse/HDDS-15139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chung-En Lee updated HDDS-15139:
--------------------------------
Reporter: Chung-En Lee (was: Chung En Lee)
> Introduce `S3ContentSha256Type` Enum for S3 upload headers
> ----------------------------------------------------------
>
> Key: HDDS-15139
> URL: https://issues.apache.org/jira/browse/HDDS-15139
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Chung-En Lee
> Assignee: Chung-En Lee
> Priority: Major
>
> Currently, the S3 Gateway determines the type of AWS Signature payload
> verification by parsing the x-amz-content-sha256 header. As we introduce more
> multiple chunks payload, relying on hardcoded string comparisons becomes
> error-prone, hard to maintain, and reduces code readability.
> Introduce a centralized S3ContentSha256Type enum to manage these header
> values and encapsulate the conditional logic.
> Refactor existing S3G code to utilize this enum instead of raw string
> comparisons.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]