libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [libcloud] sdcubber opened a new issue #1530: Object metadata keys are lowercased when uploading to GCS
Date Thu, 17 Dec 2020 19:39:27 GMT

sdcubber opened a new issue #1530:

   ## Summary
   Mixed-case metadata is lowercased when using libcloud to upload objects to Google Cloud
   ## Detailed Information
   I'm using libcloud to upload files to a Google Cloud Storage bucket together with object
   In the process, the keys in my metadata dict are being lowercased. This is not due to Google
Cloud Storage, which does support mixed case metadata.
   The issue can be reproduced following the example from the docs:
   from import Provider
   from import get_driver
   cls = get_driver(Provider.GOOGLE_STORAGE)
   driver = cls('SA-EMAIL', './SA.json') # provide service account credentials here
   FILE_PATH = '/home/user/file'
   extra = {'meta_data': {'camelCase': 'foo'}}
   # Upload with metadata
   with open(FILE_PATH, 'rb') as iterator:
       obj = driver.upload_object_via_stream(iterator=iterator,
   The file uploads succesfully, but resulting metadata will look as follows:
   Where `camelCase` has been turned into `camelcase`.
   I'm using apache-libcloud==3.0.0 with Python 3.8 on Linux (the python:3.8 Docker image).
   Provide detailed information of your bug report.

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message