commit | 2791f470466493a3f10ce0d4fb53416056d407cc | [log] [tgz] |
---|---|---|
author | i831992 <erik.ebert@sap.com> | Tue Jun 22 14:28:29 2021 -1000 |
committer | Andrew Gaul <andrew@gaul.org> | Wed Jun 23 09:59:26 2021 +0900 |
tree | 890a9bafa38ad8485381ebe7e67898af4831271f | |
parent | ecec0265ad47c9e22ef057e6ed0c59debb8784f8 [diff] |
JCLOUDS-1580 - Add support for lowercase metadata headers The issue happens if a cloud provider returns lowercase metadata headers, for example: "x-object-meta-apiversion" instead of "X-Object-Meta-ApiVersion" In that case, BlobStore.blobMetadata(CONTAINER, PATH).getUserMetadata() incorrectly returns an empty map. This happens because the code is looking for the exact String "-Meta-" (case-sensitive). This checkin allows to handle metadata headers of any case, and also adds a unit test for that situation.
Apache jclouds is an open source multi-cloud toolkit for the Java platform that gives you the freedom to create applications that are portable across clouds while giving you full control to use cloud-specific features.
For more information about using or contributing to jclouds, please visit our website at jclouds.apache.org.
Copyright (C) 2009-2019 The Apache Software Foundation
Licensed under the Apache License, Version 2.0