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

Claus Ibsen updated CAMEL-27863:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-huaweicloud-obs for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/87cb1d00f3100684280f706391ed79b732999e11,
 pull request https://github.com/apache/camel/pull/31145).
This is a separate problem of the component; the descriptions change only 
documents the current behavior.

h4. Only 14 hard-coded regions
{{OBSRegion.createRegions}} accepts only 14 regions and cn-north-4 (Beijing4) 
is not one of them, so the doc examples (region=cn-north-4) fail with 
"Unexpected regionId". checkValidRegion also rejects such a bucketLocation in 
createBucket and in putObject auto-create, even when the endpoint option is set.
Proposed change: build obs.<region>.myhuaweicloud.com for any region id (or add 
the missing regions), and skip the check for bucketLocation.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-huaweicloud-obs for 
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31145).
This is a separate problem of the component; the descriptions change only 
documents the current behavior.

h4. Only 14 hard-coded regions
{{OBSRegion.createRegions}} accepts only 14 regions and cn-north-4 (Beijing4) 
is not one of them, so the doc examples (region=cn-north-4) fail with 
"Unexpected regionId". checkValidRegion also rejects such a bucketLocation in 
createBucket and in putObject auto-create, even when the endpoint option is set.
Proposed change: build obs.<region>.myhuaweicloud.com for any region id (or add 
the missing regions), and skip the check for bucketLocation.


_Claude Code on behalf of davsclaus_


> camel-huaweicloud-obs: only 14 hard-coded regions are accepted (cn-north-4 
> fails)
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-27863
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27863
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-huaweicloud-obs for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/87cb1d00f3100684280f706391ed79b732999e11,
>  pull request https://github.com/apache/camel/pull/31145).
> This is a separate problem of the component; the descriptions change only 
> documents the current behavior.
> h4. Only 14 hard-coded regions
> {{OBSRegion.createRegions}} accepts only 14 regions and cn-north-4 (Beijing4) 
> is not one of them, so the doc examples (region=cn-north-4) fail with 
> "Unexpected regionId". checkValidRegion also rejects such a bucketLocation in 
> createBucket and in putObject auto-create, even when the endpoint option is 
> set.
> Proposed change: build obs.<region>.myhuaweicloud.com for any region id (or 
> add the missing regions), and skip the check for bucketLocation.
> _Claude Code on behalf of davsclaus_



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

Reply via email to