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

Incorrect scope count when adding a global scope to an application

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Master, 1.0-portal_7.1.0
    • Fix Version/s: 1.0-portal_7.1.0
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Set up a test module with new scopes and add scope mapping for that module within System Settings > OAuth 2 > ScopeMapper to enable global scopes
      2. Navigate to Control Panel > OAuth2 Administration and add a new application
      3. Navigate to the application's Scopes section
      4. Navigate to the Global scopes tab and click on one of the scope checkboxes that is mapped to some of the resource scopes
      5. Count the number of resource scopes that are checked
      6. Navigate back to the OAuth2 Applications table

      Actual result:
      The "Scopes" count in the table for the application just added is less than the actual number of scopes checked.

      Note:
      Checking the resource scopes directly instead of through the global scopes would result in a correct scope count in the table.

      Reproduced on:
      Tomcat 9.0.6 + MySQL 5.7.22
      portal master Git SHA: e71f5c492f9606f84c3faa776e3ea89fb65cf7ed

        Attachments

        1. globalscope.png
          globalscope.png
          18 kB
        2. resourcescope.png
          resourcescope.png
          63 kB
        3. scopecount.png
          scopecount.png
          23 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  1.0-portal_7.1.0