gnodet commented on PR #31340:
URL: https://github.com/apache/camel/pull/31340#issuecomment-7409044974

   **On the credentials encoding:**
   
   Making `SslAwareMongoClient.encode()` package-private (from `private static` 
to `static`) to reuse it in `MongoDbEndpoint` is good - it ensures consistent 
percent-encoding behavior. The encoding correctly handles reserved characters 
like `@`, `:`, `/`, `%`, and spaces in both username and password.
   
   The replacement of `+` with `%20` is important because the MongoDB 
connection string parser treats `+` literally rather than as a space (unlike 
URL query parameters).
   


-- 
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