[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-05 Thread Yi Yan (JIRA)

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

Yi Yan commented on CAMEL-12121:


Ah..Ok, I just tested in a same bucket (by renaming), seems it should be 
overwrote. It's clear now, thank you!

Regards,
Yi

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-05 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-12121:
--

I tested this with 2.21.0-SNAPSHOT and the object is copied to the destination 
bucket with the original name.

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-05 Thread Yi Yan (JIRA)

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

Yi Yan commented on CAMEL-12121:


But the question is if I remove the setHeader, seems it will not copy the 
object into the target(producer will not work).

Yi

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-04 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-12121:
--

also includeBody is an option specific of the consumer side, you don't have any 
effect by using it in the S3 producer.

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-04 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-12121:
--

I reproduced the problem.

Since you are using the setHeader on S3 key after From, the deleteAfterRead 
will try to delete the copy_test1.txt from the source_bucket.

If you remove that setHeader you'll see the file will be deleted from the 
source bucket.

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-04 Thread Yi Yan (JIRA)

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

Yi Yan commented on CAMEL-12121:


Thank you! Even in S3 one bucket, the consumer S3 component cannot delete the 
source object after running.

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-04 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-12121:
--

Probably the problem is in moving from bucket to bucket. I'll take a look.

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-04 Thread Yi Yan (JIRA)

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

Yi Yan commented on CAMEL-12121:


2.18.3 is not Ok.

Yi

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-03 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-12121:
--

I'll try to reproduce.

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-03 Thread Yi Yan (JIRA)

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

Yi Yan commented on CAMEL-12121:


Hi Andrea, I just tried with 2.20.1, still can not delete the source object.

Regards,
Yi

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>Assignee: Andrea Cosentino
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-03 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-12121:
--

Try with 2.18 at least.

There is a fix already 
https://github.com/apache/camel/commit/9f16e397cb8823f9317bd08a7f0f87ee05e1d5b8

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (CAMEL-12121) AWS_S3 consumer unable to delect object with another S3 producer

2018-01-03 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-12121:
--

Did you try with a newer version? 2.17.6 is old.

> AWS_S3 consumer unable to delect object with another S3 producer
> 
>
> Key: CAMEL-12121
> URL: https://issues.apache.org/jira/browse/CAMEL-12121
> Project: Camel
>  Issue Type: Bug
>  Components: camel-aws
>Affects Versions: 2.17.6
>Reporter: Yi Yan
>
> I want to move(copy+delete) some objects from one AWS S3 bucket to another, 
> so I created the configuration like below, the new object is copied but the 
> source object is not deleted as expected(deleteAfterRead=true).
> {code}
> from("aws-s3:source_bucket?amazonS3Client=#AWSConnection1&fileName=test1.txt&deleteAfterRead=true")
> .setHeader("CamelAwsS3Key", constant("test1_copy.txt")) 
> .setHeader("CamelAwsS3ContentLength", constant(5)) 
> .to("aws-s3:target_bucket?amazonS3Client=#AWSConnection1&includeBody=false");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)