[
https://issues.apache.org/jira/browse/CAMEL-15282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17160118#comment-17160118
]
Ahmed M commented on CAMEL-15282:
---------------------------------
I think this method {{AbstractCamelCatalog#validateEndpointProperties}} checks
if the URI matches *{{netty-http:protocol:host:port/path}}* ; it does not
resolve property placeholders before parsing the URI
is this really a bug ? since the following test is passing :
{code:java}
@Test
public void testEndpointUriWithEnv() throws Exception {
String uri =
"netty-http:http://quarkus-ml.{{env:HOSTNAME}}.svc.cluster.local:42/samples";
NettyHttpEndpoint endpoint = context.getEndpoint(uri,
NettyHttpEndpoint.class);
String host = endpoint.getConfiguration().getHost();
int port = endpoint.getConfiguration().getPort();
assertEquals("quarkus-ml."+System.getenv("HOSTNAME")+".svc.cluster.local",
host);
assertEquals(42, port);
}
{code}
> Wrong validation error reported for uri with netty component using env
> placeholder
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-15282
> URL: https://issues.apache.org/jira/browse/CAMEL-15282
> Project: Camel
> Issue Type: Bug
> Components: camel-catalog
> Affects Versions: 3.4.0
> Reporter: Aurélien Pupier
> Priority: Major
>
> {noformat}
> netty-http:http://quarkus-ml.{{env:NAMESPACE}}.svc.cluster.local/samples
> {noformat}
> the error reported is:
> {noformat}
> port Invalid integer value: NAMESPACE}}.svc.cluster.local
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)