Skip to content

HDDS-15178. Allow creating EncodingTypeObject for empty String#10195

Merged
peterxcli merged 1 commit intoapache:masterfrom
peterxcli:fix/s3-nullable-encoding
May 6, 2026
Merged

HDDS-15178. Allow creating EncodingTypeObject for empty String#10195
peterxcli merged 1 commit intoapache:masterfrom
peterxcli:fix/s3-nullable-encoding

Conversation

@peterxcli
Copy link
Copy Markdown
Member

@peterxcli peterxcli commented May 5, 2026

What changes were proposed in this pull request?

Updates the handling of empty string values for the name parameter in the EncodingTypeObject class, ensuring that empty strings are treated as valid (rather than null) and are properly marshaled and tested. It also improves test coverage and correctness for these cases.

this fixes two s3-test test cases:

relate to: #4127

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15178

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests, workflow run on the fork git repo.)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this.)

…of empty string; update tests to cover new behavior.

Signed-off-by: peterxcli <peterxcli@gmail.com>
@peterxcli peterxcli changed the title HDDS-7710. Support AWS s3 ListObjects API's encodingType request parameter HDDS-15178. [S3 Compatibility] Create EncodingTypeObject for Empty String May 5, 2026
@peterxcli peterxcli requested review from adoroszlai and xichen01 May 5, 2026 20:10
@peterxcli
Copy link
Copy Markdown
Member Author

peterxcli commented May 5, 2026

I notice the jira ticket this PR for should be as a subtask under https://issues.apache.org/jira/browse/HDDS-8423, is there any way to fix it? I couldn't found the move option.

@peterxcli peterxcli self-assigned this May 5, 2026
@peterxcli peterxcli marked this pull request as ready for review May 5, 2026 20:54
@adoroszlai
Copy link
Copy Markdown
Contributor

I notice the jira ticket this PR for should be as a subtask under https://issues.apache.org/jira/browse/HDDS-8423

Moved.

I couldn't found the move option.

It is in the "More" popup.

Copy link
Copy Markdown
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @peterxcli for the patch, LGTM.

@adoroszlai adoroszlai changed the title HDDS-15178. [S3 Compatibility] Create EncodingTypeObject for Empty String HDDS-15178. Allow creating EncodingTypeObject for empty String May 6, 2026
@peterxcli peterxcli merged commit c3ffd05 into apache:master May 6, 2026
68 checks passed
@peterxcli peterxcli deleted the fix/s3-nullable-encoding branch May 6, 2026 06:03
@peterxcli
Copy link
Copy Markdown
Member Author

@adoroszlai Thanks for the review and the help!

It is in the "More" popup.

Looks like I don't have that option because I don't have enough permission level, maybe only PMC Member can do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants