Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-38149

When editing an existing Crowd directory to change the application password, the application password value is reset to the old value after clicking "Test Settings"

    XMLWordPrintable

Details

    Description

      If you change the application password in Crowd, then when you go to edit this password in JIRA, you are forced to click "Test Settings" before you can "Save and Test". After clicking "Test Settings", the value of the password is then reset in the form to the previous value, so if you immediately click "Save and Test" after "Test Settings", the same password will be saved again.

      Steps to Reproduce

      1. Set up an application in Crowd
      2. Connect JIRA to that application and check it's synchronising successfully
      3. Change the application password for that application in Crowd
      4. Disable and re-enable the directory in JIRA to immediately invalidate the session to Crowd
      5. Force a sync and watch it fail
      6. Edit the directory
      7. Enter the new password and click "Test Settings"
      8. After the test succeeds, click "Save and Test"
      9. Observe that the sync still fails
      10. Observe that the password value stored in cwd_directory_attribute table is still holding the old password

      Expected Results

      The value should be held after clicking "Test Settings", so that then clicking "Save and Test" will work correctly.

      Actual Results

      The value is lost, so the new password doesn't get saved

      Workaround

      After clicking "Test Settings", enter the new password again into the form before clicking "Save and Test"

      Workaround for Delegated LDAP Connector

      Do not click the 'Test Settings' button

      • Open console in the browsers developer tools and run the following commands
        AJS.$('#configure-delegating-ldap-form-submit').removeAttr("aria-disabled");
        AJS.$('#configure-delegating-ldap-form-submit').removeAttr("disabled");
        
      • That will allow you to click the 'Save and Test' button, with first clicking 'Test Settings'

      Attachments

        Issue Links

          Activity

            People

              ohernandez@atlassian.com Oswaldo Hernandez (Inactive)
              dmason David Mason (Inactive)
              Votes:
              10 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: