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

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

     [ https://issues.apache.org/jira/browse/CAMEL-18300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-18300:
-----------------------------------

    Assignee: Claus Ibsen

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.19.0
>
>         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)