[SERVER-29921] Mongo connection uri doesn't support @ character in database name Created: 29/Jun/17 Updated: 30/Oct/23 Resolved: 21/Sep/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | 3.4.11, 3.6.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Christian | Assignee: | Sara Golemon |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | neweng, platforms-interns-2017 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
|||||||||||||||
| Backwards Compatibility: | Minor Change | |||||||||||||||
| Operating System: | ALL | |||||||||||||||
| Backport Requested: |
v3.4
|
|||||||||||||||
| Steps To Reproduce: |
I try to scape the character but It doesn't work
|
|||||||||||||||
| Sprint: | Platforms 2017-07-31, Platforms 2017-08-21, Platforms 2017-09-11, Platforms 2017-10-02 | |||||||||||||||
| Participants: | ||||||||||||||||
| Description |
|
"@" is a valid caracter for database names but it is not supported in shell connection uri. |
| Comments |
| Comment by Githook User [ 27/Nov/17 ] |
|
Author: {'name': 'Sara Golemon', 'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com'}Message: (cherry picked from commit f3bf7e7920a51df7100238a55c304ed7cd3aed1f) |
| Comment by Sara Golemon [ 21/Sep/17 ] |
|
This change includes a complete rewrite of the mongodb:// uri parser. Every effort has been made to conform to spec and support documented formats, however given that the previous parser was loose in how it dealt with malformed connection strings, it possible that this new parser will reject connection strings which previously worked, despite being slightly malformed. |
| Comment by Githook User [ 21/Sep/17 ] |
|
Author: {'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon', 'username': 'sgolemon'}Message: |
| Comment by Tyler Kaye [ 10/Aug/17 ] |
|
Author: {'username': 'tkaye407', 'email': 'tyler.kaye@mongodb.com', 'name': 'Tyler Kaye'}Message: |
| Comment by Tyler Kaye [ 10/Jul/17 ] |
|
The regex has been completely removed and the URI parser is now up to the standards of the spec seen here (https://github.com/mongodb/specifications/blob/master/source/connection-string/connection-string-spec.rst#reference-implementation) |