Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-362

Reset password error is not useful when regex is not passed.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.1
    • None
    • Caching
    • None

      Clicking Reset Password produces an error - there is no message in the red panel, but the log shows an InvalidCredentialException - presumably validating a generated password against the regex for the directory.
      This error occurred twice in succession (Principal was searched for, details displayed each time) until finally a new password was successfully generated. However, there is only one instance of the exception in catalina.out (was this cached?).

      Regex used is:

      ^(?=.*\d).{8,12}$
      

      There are several items to address here:

      1. Display a clean error message when unable to generate a random password.
      2. Add instructional text that the random password generator may not be able generated by the internal password generator.
      3. Have random password generator make X attempts until a successful password is generator, if not able to display a clean error message.

            [CWD-362] Reset password error is not useful when regex is not passed.

            Checked the code and concluded that the password generation is fine. The problem is when Crowd updates the user and the new password is validated against the Directory Regular Expression (This comment looks like obvious, but is not the approach taken by Justen in the ticket Description).

            Renan Battaglin added a comment - Checked the code and concluded that the password generation is fine. The problem is when Crowd updates the user and the new password is validated against the Directory Regular Expression (This comment looks like obvious, but is not the approach taken by Justen in the ticket Description).

              rbattaglin Renan Battaglin
              justen.stepka@atlassian.com Justen Stepka [Atlassian]
              Affected customers:
              9 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: