pvillard31 commented on PR #9998: URL: https://github.com/apache/nifi/pull/9998#issuecomment-2955173580
> Thanks for working on this issue @pvillard31. > > On closer review, I'm not sure that adding the username and password to the URI is the best solution. > > The MongoCredential has a property for authentication mechanism, which is currently unset. Instead for appending the username and password, what about parsing the connection string for the authMechanism and using that if found? Would that address the issue? 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? -- 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]
