Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ListObjectPoliciesResponse unmarshal failed #213

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Conversation

BarryTong65
Copy link
Collaborator

Description

fix ListObjectPoliciesResponse unmarshal failed bug

Rationale

image

Example

N/A

Changes

Notable changes:

  • fix ListObjectPoliciesResponse unmarshal failed bug

@BarryTong65 BarryTong65 requested a review from ruojunm November 28, 2023 04:33
@@ -1339,7 +1339,7 @@ func (c *Client) ListObjectPolicies(ctx context.Context, objectName, bucketName

policies := types.ListObjectPoliciesResponse{}
bufStr := buf.String()
err = xml.Unmarshal([]byte(bufStr), &policies.Policies)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please also add more details in the function doc for actionType parameters

Choose a reason for hiding this comment

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

added

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please also add an e2e test on this API.

@keefel
Copy link
Contributor

keefel commented Nov 28, 2023

Please submit to master

@BarryTong65 BarryTong65 changed the base branch from develop to master November 28, 2023 07:28
Copy link
Collaborator

@ruojunm ruojunm left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@sysvm sysvm left a comment

Choose a reason for hiding this comment

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

LGTM

@ruojunm ruojunm added this pull request to the merge queue Nov 28, 2023
Merged via the queue into master with commit b433179 Nov 28, 2023
6 checks passed
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.

5 participants