Uploaded image for project: 'PUBLIC - OAuth2'
  1. PUBLIC - OAuth2
  2. OAUTH2-257

Persistent input values within OAuth2 Administration edit Client ID/Secret modals

    Details

    • Type: Regression Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Navigate to Control Panel > Configuration > OAuth 2 Administration and add a new application
      2. Once the application is added, click on the edit button (pencil icon) underneath the Client Secret field to open up the edit modal
      3. Change the Client Secret input value to "abcd"
      4. Click Cancel within the modal
      5. Click the Client Secret edit button to open the edit modal again
        1. Expected result: The value within the Client Secret field should be whatever was originally in that field before the user clicked "Cancel", i.e. the actual value that you can see from inspecting the Client Secret element (value="secret-...")
        2. Actual result: The value within the Client Secret field is "abcd"
      6. Add a new OAuth 2 application
      7. Click the Client Secret edit button
        1. Expected result: The value within the Client Secret field should be the pre-generated value, i.e. the actual value found from inspecting the element.
        2. Actual result: The value within the Client Secret field is "abcd", the value that was entered in the previous application.

      Example of clicking "Cancel":

      Note: This happens for both the Client ID and Client Secret edit modals. This happens regardless of how you exit the edit modal screen, i.e. whether you click "Cancel", "Apply", the x close button, ESC key. The incorrect value persists even after navigating away from the OAuth 2 Administration portlet.

      Reproduced on:
      Portal master Git SHA: b3141a8bd29ecbe4ecd42e8f2d1e129a64fe853d

        Attachments

          Activity

            People

            • Assignee:
              joshua.chong Joshua Chong
              Reporter:
              joshua.chong Joshua Chong
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                Master