Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6030

Inconsistent treatment of special characters in password in Connection string method and Wizard method

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.32.6
    • Component/s: Connectivity, UI / UX
    • Labels:
      None
    • Environment:
      Atlas RS 5.0.10
      macOS 12.5
    • Not Needed

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Special characters in password are not behaving consistently and may prevent logging in.

      Please be sure to attach relevant logs with any sensitive data redacted.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Create replica set 5.0.10

      Create users with password using special character described in https://jira.mongodb.org/browse/COMPASS-2844

      Passwords were 1 character in length for simplification.

      Log in using those special characters in the Connection String method.

      Also tested logging in using the Connection wizard under "Advanced Connection Options". Also saw ascii values/direct character typed in not consistently displayed in UI (in the connection string field being built).

      Expected Results

      What do you expect to happen?

      To be able to log successfully with all valid special characters. Being able to log in was also compared and confirmed with mongosh and mongo shell. See MONGOSH-1289.

      Actual Results

      What do you observe is happening?

      1. Can't log in with "/" "?" and "#" and equivalent ascii character replacement.

      Error messages also vary.

      This prevents users from logging in when the passwords includes these special characters. Tests were simplified by using 1 character password.

      2. Error messages vary.

      3. Typing in the character in the password field in "Advanced Connection Options" doesn't change into the ascii value above in the connection string field that is being built for "_", "!", "-", and "'" as with the other special characters. Behavior should be consistent.

      Additional Notes

      Any additional information that may be useful to include.

      Item 1 Prevents users from logging in.
      Item 2 and 3 are cosmetic.

            Assignee:
            Unassigned Unassigned
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: