mc icon indicating copy to clipboard operation
mc copied to clipboard

mc find --metadata not working

Open oernii opened this issue 1 year ago • 1 comments

Expected behavior

"mcli find --metadata" prints existing documents matching existing metadata

Actual behavior

"mcli find --metadata" returns nothing

Steps to reproduce the behavior

mcli cp /proc/cpuinfo --attr testname=33 alias/bucket/testfile mcli stat alias/bucket/testfile --versions mcli find --metadata testname=33 alias/bucket/

mc --version

mcli version RELEASE.2023-12-14T00-37-41Z (commit-id=8da737f8fd63de58dc475bf88eb9e285d206e3ae) Runtime: go1.21.5 linux/amd64

System information

RHEL8.9

oernii avatar Dec 14 '23 11:12 oernii

@oernii what will work now is:

mcli find --metadata "X-Amz-Meta-Testname=33" alias/bucket/

All user custom metadata starts with X-Amz-Meta- in S3. This is not user friendly for now; we can use what is the best way to address this.

@harshavardhana does it make sense to differentiate between "standard" headers and unrecognized metatdata key and add X-Amz-Meta- in that case before comparing it with objects metadata found in the server ?

vadmeste avatar Dec 15 '23 00:12 vadmeste

@harshavardhana does it make sense to differentiate between "standard" headers and unrecognized metatdata key and add X-Amz-Meta- in that case before comparing it with objects metadata found in the server ?

yeah it makes sense @vadmeste

harshavardhana avatar May 02 '24 10:05 harshavardhana