[
https://issues.apache.org/jira/browse/CAMEL-16461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17315960#comment-17315960
]
Andrea Cosentino commented on CAMEL-16461:
------------------------------------------
The header in this case cannot be used. It must be static. Suppose you send an
exchange to the streaming upload producer with a dynamic header with date as
suffix: if on each exchange you change the keyname there is no way to track
where the multipart upload is pointing. I will documentation for this but this
is by design.
> NPE when using the AWS2S3StreamUploadProducer and setting s3 key header
> -----------------------------------------------------------------------
>
> Key: CAMEL-16461
> URL: https://issues.apache.org/jira/browse/CAMEL-16461
> Project: Camel
> Issue Type: Bug
> Components: camel-aws2-s3
> Reporter: Claudio Miranda
> Priority: Major
>
> Using the AWS2S3StreamUploadProducer and setting the header "CamelAwsS3Key"
> and not setting the keyName in query parameter, it throws the NPE
>
> {code:java}
> java.lang.NullPointerException: null
> at
> org.apache.camel.component.aws2.s3.utils.AWS2S3Utils.determineFileName(AWS2S3Utils.java:75)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)