Skip to content

Commit

Permalink
Add user tags when listing with metadata (minio#16883)
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost authored Mar 23, 2023
1 parent 8b0ab6e commit 5e3bfd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/api-response.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ type Object struct {

// UserMetadata user-defined metadata
UserMetadata *Metadata `xml:"UserMetadata,omitempty"`
UserTags string `xml:"UserTags,omitempty"`
}

// CopyObjectResponse container returns ETag and LastModified of the successfully copied object
Expand Down Expand Up @@ -626,6 +627,7 @@ func generateListObjectsV2Response(bucket, prefix, token, nextToken, startAfter,
}
content.Owner = owner
if metadata {
content.UserTags = object.UserTags
content.UserMetadata = &Metadata{}
switch kind, _ := crypto.IsEncrypted(object.UserDefined); kind {
case crypto.S3:
Expand Down

0 comments on commit 5e3bfd2

Please sign in to comment.