exceptionfactory commented on PR #9998: URL: https://github.com/apache/nifi/pull/9998#issuecomment-2957392732
> Hey @exceptionfactory - AFAICT this would not help. The exception is currently raised when calling > > ```java > final ConnectionString cs = new ConnectionString(uri); > ``` > > While it is possible to create the `MongoCredential` with a specific authentication method, we still need to create the `ConnectionString` and give it to the client builder. Or are you suggesting something else? Thanks for the reply. I am suggesting to parse and _remove_ the `authMechanism` parameter from the input URI string. Walking through the `ConnectionString` class, it appears the presence of that parameter triggers looking for a username and password, so seems like remove it from the input URI string would resolve the issue, without adding the username and password to the URI. -- 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]
