Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-612

Google Storage: tags can't be read/written

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Storage

    Description

      Setting tags via upload_object(..., extra=dict(meta_data=

      {...}

      )) and reading them via get_object('foo').meta_data doesn't work in the Google Storage driver. From what I see in the code this is caused by BaseS3StorageDriver._headers_to_object, which expects the meta data headers to be prefixed with 'x-amz-meta-'. I checked the libcloud debug output and on Google Storage they are prefixed with 'x-goog-meta-'.

      Should the Google driver override the method (although it's private) or should BaseS3StorageDriver._headers_to_object accept both prefixes? Or something else? Depending on what the preferred solution is, I would make a pullrequest for this.

      Is there ongoing work to have a Google Storage Driver using the native Google API?

      Attachments

        Activity

          People

            erjohnso Eric Johnson
            sfriesel Stefan Friesel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: