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

ListObjects does not parse metadata #1797

Closed
max0ne opened this issue Apr 2, 2023 · 2 comments
Closed

ListObjects does not parse metadata #1797

max0ne opened this issue Apr 2, 2023 · 2 comments

Comments

@max0ne
Copy link

max0ne commented Apr 2, 2023

Hi, I noticed 2 issues using metadata:

  1. ListObjects does not properly parses metadata from XML response. When I set WithMetadata to true, I'd expect all UserMetadata I previously returns. What I see is it returns metadata as a map of empty string
map[:]
  1. StatObject is a workaround I found to get object metadata, however it also doesn't work perfectly. It parses metadata from response header, which capitalizes keys:
map[Foo:bar One:uno dos]
@max0ne
Copy link
Author

max0ne commented Apr 2, 2023

This gist reproduces it
https://gist.github.com/max0ne/3bd6471f320c7d6cbaa007ba201196bd

I'm using minio-go v7.0.50

@harshavardhana
Copy link
Member

it is fixed in #1795

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

No branches or pull requests

2 participants