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 2018/02/26 08:49:00 UTC

[jira] [Commented] (CAMEL-12292) SnsProducer/SqsProducer setting MessageAttributes with empty values which causes errors

    [ https://issues.apache.org/jira/browse/CAMEL-12292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16376530#comment-16376530 ] 

Claus Ibsen commented on CAMEL-12292:
-------------------------------------

So maybe it should skip those headers that has null values.

> SnsProducer/SqsProducer setting MessageAttributes with empty values which causes errors
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12292
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12292
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws
>    Affects Versions: 2.19.4, 2.20.2
>            Reporter: Christian Müller
>            Assignee: Christian Müller
>            Priority: Major
>             Fix For: 2.19.5, 2.20.3, 2.21.0
>
>
> If we send MessageAttributes to AWS where the value is null, it causes the following excheption:
> {code}
> com.amazonaws.services.sns.model.InvalidParameterValueException: The message attribute 'JMSType' must contain non-empty message attribute value for message attribute type 'String'. (Service: AmazonSNS; Status Code: 400; Error Code: ParameterValueInvalid; Request ID: d3ab2323-b70d-5d11-b466-702f48b02816)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)