Closed alexhuth closed 5 years ago
oy....
https://github.com/minio/minio/issues/6471#issuecomment-421844085
seems like there is some reluctance to fix it on the minio side. from what i can gather, the metadata keys provided by the server are not required to be lowercased, but the client should convert them to lowercase.
we can have a function that grabs metadata and cleans it (eg utils.sanitize_metadata()
). then we can just wrap object.metadata
acess with that function. this wouldn't be there ugliest thing...
It seems like there's been a change in the past month or two in either (or both) boto3 or minio (the object store that we are using) that make
download_raw_array
fail.here's the error:
the problem is that boto3 is now returning a metadata dictionary that has the first letter of each key capitalized (!). See:
We did not get this behavior with boto3 version 1.7.33 (on python 3) or boto version 2.48.0 (on python 2), but we do have the problem on boto3 version 1.9.20 (python 3) and boto3 1.10.33 (python 3).
Other reports of the same issue: minio/minio#6471 and boto/boto3#1425
This could be fixed in a few ways, but I think all of them may be ugly. Please advise.