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

Claus Ibsen updated CAMEL-27793:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-ibm-cos for CAMEL-23832 
(commit 
https://github.com/apache/camel/commit/8a5ecaf41ffca0f81f3d680155485d5214951a59,
 pull request https://github.com/apache/camel/pull/31137).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. Every request is aborted after 5 seconds
{{IBMCOSEndpoint.createCosClient()}} sets 
{{ClientConfiguration.withRequestTimeout(5000)}}; the SDK default is 0 (off). 
The HTTP client then aborts any request that has not completed in 5 s, so a 
single-request putObject of a large body, or a large part on a slow link, fails 
when Camel builds the client.
Proposed change: drop the setting or make it an option.

h4. 2. moveAfterRead without destinationBucket
In {{IBMCOSConsumer.processCommit}} / {{copyObject}}, moveAfterRead=true with 
no destinationBucket builds a CopyObjectRequest with a null target. Each commit 
fails with a WARN, the object is never deleted, and later polls consume it 
again.
Proposed change: validate it when the consumer starts.

h4. 3. fileName with deleteAfterRead=true (the default) fails on every poll 
after the first read
After the first read the object is deleted, and every later poll's getObject 
fails with NoSuchKey, logged on every poll.
Proposed change: treat 404 as nothing to consume, or document it.

h4. 4. apiKey without endpointUrl
With apiKey but no endpointUrl, the SDK resolves a region through the AWS 
region provider chain and fails with "Unable to find a region", or points the 
client at AWS. Nothing validates endpointUrl when Camel creates the client.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-ibm-cos for CAMEL-23832 
(pull request https://github.com/apache/camel/pull/31137).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. Every request is aborted after 5 seconds
{{IBMCOSEndpoint.createCosClient()}} sets 
{{ClientConfiguration.withRequestTimeout(5000)}}; the SDK default is 0 (off). 
The HTTP client then aborts any request that has not completed in 5 s, so a 
single-request putObject of a large body, or a large part on a slow link, fails 
when Camel builds the client.
Proposed change: drop the setting or make it an option.

h4. 2. moveAfterRead without destinationBucket
In {{IBMCOSConsumer.processCommit}} / {{copyObject}}, moveAfterRead=true with 
no destinationBucket builds a CopyObjectRequest with a null target. Each commit 
fails with a WARN, the object is never deleted, and later polls consume it 
again.
Proposed change: validate it when the consumer starts.

h4. 3. fileName with deleteAfterRead=true (the default) fails on every poll 
after the first read
After the first read the object is deleted, and every later poll's getObject 
fails with NoSuchKey, logged on every poll.
Proposed change: treat 404 as nothing to consume, or document it.

h4. 4. apiKey without endpointUrl
With apiKey but no endpointUrl, the SDK resolves a region through the AWS 
region provider chain and fails with "Unable to find a region", or points the 
client at AWS. Nothing validates endpointUrl when Camel creates the client.


_Claude Code on behalf of davsclaus_


> camel-ibm-cos: a fixed 5 s request timeout, moveAfterRead without 
> destinationBucket, fileName with deleteAfterRead fails every poll
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27793
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27793
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-ibm-cos for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/8a5ecaf41ffca0f81f3d680155485d5214951a59,
>  pull request https://github.com/apache/camel/pull/31137).
> These are separate problems of the component; the descriptions change only 
> documents the current behavior.
> h4. 1. Every request is aborted after 5 seconds
> {{IBMCOSEndpoint.createCosClient()}} sets 
> {{ClientConfiguration.withRequestTimeout(5000)}}; the SDK default is 0 (off). 
> The HTTP client then aborts any request that has not completed in 5 s, so a 
> single-request putObject of a large body, or a large part on a slow link, 
> fails when Camel builds the client.
> Proposed change: drop the setting or make it an option.
> h4. 2. moveAfterRead without destinationBucket
> In {{IBMCOSConsumer.processCommit}} / {{copyObject}}, moveAfterRead=true with 
> no destinationBucket builds a CopyObjectRequest with a null target. Each 
> commit fails with a WARN, the object is never deleted, and later polls 
> consume it again.
> Proposed change: validate it when the consumer starts.
> h4. 3. fileName with deleteAfterRead=true (the default) fails on every poll 
> after the first read
> After the first read the object is deleted, and every later poll's getObject 
> fails with NoSuchKey, logged on every poll.
> Proposed change: treat 404 as nothing to consume, or document it.
> h4. 4. apiKey without endpointUrl
> With apiKey but no endpointUrl, the SDK resolves a region through the AWS 
> region provider chain and fails with "Unable to find a region", or points the 
> client at AWS. Nothing validates endpointUrl when Camel creates the client.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to