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

Mismatched struct Policy vs Bucket in https://github.com/ceph/go-ceph/blob/master/rgw/admin/bucket.go #882

Closed
gear12beer opened this issue May 30, 2023 · 4 comments · Fixed by #886

Comments

@gear12beer
Copy link

json: cannot unmarshal string into Go struct field Policy.owner of type struct { ID string "json:"id""; DisplayName string "json:"display_name"" }

@phlogistonjohn
Copy link
Collaborator

Hello there,
Can you elaborate more a bit on this issue? Specifically I think it would help to explicitly name the API call(s) you were using as well as the ceph cluster's version and the version of go-ceph. Thanks!

@gear12beer
Copy link
Author

gear12beer commented May 30, 2023 via email

@phlogistonjohn
Copy link
Collaborator

CC: @thotz

@thotz
Copy link
Collaborator

thotz commented Jun 2, 2023

Looks like a bug in the current rgw/go package https://github.com/ceph/go-ceph/blob/master/rgw/admin/bucket.go#L80
it is defined as string but actually a struct

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

Successfully merging a pull request may close this issue.

4 participants