Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-187

[url_parser] wrong cs parsing when auth part contains '@' in password

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4
    • Component/s: None
    • Labels:

      Here is the source of the issue:

      https://github.com/mongodb/node-mongodb-native/blob/1.4/lib/mongodb/connection/url_parser.js#L25

      It seems that '@' is valid character for password, for instance:

      mongodb://user_123:user@123@mongohosting.com:12345/test

      So auth part: auth_part = connection_part.split("@")[ 0 ];
      will end with: user_123:user
      And connection part: connection_part = connection_part.split("@")[ 1 ];
      will end with: 123@mongohosting.com:12345/test

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            oaleynik Oleg Aleynik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: