You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alvin Kwekel (Jira)" <ji...@apache.org> on 2020/10/01 20:24:00 UTC

[jira] [Created] (CAMEL-15617) Reserved PubSub attributes are unintentionally passed on causing send to fail

Alvin Kwekel created CAMEL-15617:
------------------------------------

             Summary: Reserved PubSub attributes are unintentionally passed on causing send to fail
                 Key: CAMEL-15617
                 URL: https://issues.apache.org/jira/browse/CAMEL-15617
             Project: Camel
          Issue Type: Bug
          Components: camel-google-pubsub
    Affects Versions: 3.5.0
            Reporter: Alvin Kwekel


When Camel receives a PubSub message with reserved Google PubSub attributes these are set on a Camel header and passed on to any message sender. These reserved attributes are not allowed to be set on an outgoing message so this throws an error.

1) We can filter out these reserved attributes before sending.

2) We could also use another Camel header to store the reserved attributes which will not be used when sending.

3) We could also map all attributes to headers and vice versa like we do with other transports. The real issues with this is that PubSub only supports string values as attributes. And we still need to filter out the reserved attributes.

I've already prepared a fix based on the proposed solution: 1.

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)