[JAVA-2882] Allow unencoded subdelimiters in usernames and passwords Created: 04/Jun/18  Updated: 28/Oct/23  Resolved: 21/Aug/18

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Rathi Gnanasekaran Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-496 Allow unencoded subdelimiters in user... Closed
is depended on by JAVA-2911 Java FY2019 Q3 Quick Wins Closed

 Description   

Spec change is here: https://github.com/mongodb/specifications/commit/c32a5d326c624764dccb6fc38bea057a72be56a4

Drivers need to resync their connection string tests.



 Comments   
Comment by Githook User [ 21/Aug/18 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@10gen.com', 'username': 'jyemin'}

Message: JAVA-2882: Allow all non-escaped sub-delimiters ...

... in connection string username and password

In order to continue using the built-in URLDecoder class, which replaces
all occurrences of the plus character with the space character, the plus
character is special-cased: before passing the user name or password to
the URLDecoder, all occurrences of the plus character are first replaced
with "%2B", the hex encoding of that character.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/4a44f05b2ae47d4771453d5874c910deba1dd61c

Generated at Thu Feb 08 08:58:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.