You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jeff (Jira)" <ji...@apache.org> on 2022/07/25 22:05:00 UTC

[jira] [Created] (CAMEL-18300) Google storage component does not set metadata appropriately

Jeff created CAMEL-18300:
----------------------------

             Summary: Google storage component does not set metadata appropriately
                 Key: CAMEL-18300
                 URL: https://issues.apache.org/jira/browse/CAMEL-18300
             Project: Camel
          Issue Type: Bug
            Reporter: Jeff
         Attachments: Screen Shot 2022-07-25 at 6.03.25 PM.png

The [docs|https://camel.apache.org/components/3.18.x/google-storage-component.html#_configuring_component_options] 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)