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

Saravanakumar Selvaraj reassigned CAMEL-27102:
----------------------------------------------

    Assignee: Saravanakumar Selvaraj

> camel-alibaba-fc: with region and without endpoint, the client uses the host 
> account-id.<region>.fc.aliyuncs.com
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27102
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27102
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 4.23.0
>            Reporter: Saravanakumar Selvaraj
>            Assignee: Saravanakumar Selvaraj
>            Priority: Minor
>
> Follow-up to the review of https://github.com/apache/camel/pull/30260.
> With region and without endpoint, the client of com.aliyun:fc_open20210406 
> 2.1.0 takes its endpoint from its own map of 21 regions. Each value has the 
> form account-id.<region>.fc.aliyuncs.com, with the text account-id in it. 
> com.aliyun:tea-openapi 0.3.20 does not replace this text. So with 
> region=cn-hangzhou and without endpoint, the producer sends its requests to 
> the host account-id.cn-hangzhou.fc.aliyuncs.com. For a region outside the 
> map, com.aliyun:endpoint-util 0.0.7 gives fc-open.<region>.aliyuncs.com.
> Alibaba documents the endpoints of Function Compute in the form 
> <account-ID>.<region-ID>.fc.aliyuncs.com: 
> https://help.aliyun.com/en/functioncompute/fc-endpoints
> The name account-id.cn-hangzhou.fc.aliyuncs.com resolves in DNS. What 
> Function Compute answers to a request on this host is not checked, because 
> that needs an account.
> In Camel:
> 1. Both examples of the doc page set region and no endpoint.
> 2. The description of the endpoint option says: "If not set, the region 
> option determines the endpoint, and one of the two is required."
> 3. FCUtils.createClient accepts a region without an endpoint.
> The question from the review: should endpoint be the required option, as 
> CAMEL-27046 decided for camel-alibaba-eventbridge?
> _Claude Code on behalf of saravanakumar1987_



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

Reply via email to