MarcoMartins86 opened a new issue, #1056:
URL: https://github.com/apache/camel-kamelets/issues/1056

   While trying to set the basic authentication (user, password) I got the 
error `Unknown parameters=[{password=xxxxxx, user=xxxxxx}]` I think the bug is 
really on [Camel repository](https://github.com/apache/camel) but I can't open 
an issue there.
   
   The reason I think it's a bug there is that the 
[documentation](https://camel.netlify.app/components/latest/elasticsearch-rest-component.html)
 says that `user` and `password` are options but when I try to define a route 
directly (without using the kamelet), 
`elasticsearch-rest://clusterName?password=xxxxxx&user=xxxxxx` gives me the 
same error.
   
   I've tried to debug the problem and notice that on 
`ElasticsearchEndpointConfigurer.java` the `user` and `password` are not 
present on the switches cases, all other options are, but maybe this is on 
purpose since these are the only ones with `@Metadata(secret = true)` on 
`ElasticsearchComponent.java`.
   Also, if `ElasticsearchEndpoint` class `@UriEndpoint` annotation had the 
flag `lenientProperties = true`, it would skip the validation where the error 
originates, but dunno if it would then configure the `user` and `password` 
options with the correct value.
   
   Or maybe it's just me that is missing something and can't get this to work 
on [camel-quarkus](https://github.com/apache/camel-quarkus).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to