Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18300

Google storage component does not set metadata appropriately

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.0
    • 3.18.1, 3.19.0
    • camel-google-storage
    • None
    • Unknown

    Description

      The docs indicate that the CamelGoogleCloudStorageContentType header sets the content type of the object. However, this is not the case. The GoogleCloudStorageProducer class does set metadata, but it does so using the setMetadata method of BlobInfo, which only sets custom metadata. So setting the header like so:

      .setHeader('CamelGoogleCloudStorageContentType', constant('text/plain'))

      results in a blob stored with the attached metadata, where the Content-Type is the default application/octet-stream, and the Custom Metadata includes that set on the header.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              fieldbradley Jeff
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: