Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75833

Scroll buttons not shown for Role Strategy Global Roles

XMLWordPrintable

    • 783.ve14e9f60fc26

      JENKINS-75695 added pagination to the Role Strategy plugin "Manage and Assign Roles" page. The idea is that only the first 30 rows of the tables are displayed, with scroll buttons if there are more than 30.

      In my Jenkins there are more than 30 users+groups with "Global Role" settings (2 users and 41 groups, in addition to the "Anonymous" and "Authenticated Users" entries).

      However, on the "Manage and Assign Roles" page, the "Global Roles" table just has the first 30 rows, with no scroll buttons.
      (The "Item Roles" table only has 25 rows, so there are no scroll buttons there, and none are expected).

      If I filter on a user/group name that is not visible (i.e. after the 30th row), it is correctly displayed. Also, the output from the getRoleAssignments?type=projectRoles endpoint contains the 41 users/groups as expected, so that strongly suggests that the problem is in the front end.

      The browser developer console does not show any errors.

      The identical behaviour is seen in both Firefox and Chrome on MacOS, and in Chrome on Android.

      I did notice that the page seems to makes a POST to the /descriptor/com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy/checkName endpoint for every displayed user, although not the hidden ones.

      The problem is seen with Jenkins 2.504.3 and Role-based Authorization Strategy plugin 777.v4fe2599cb_f48.

      Let me know if there is any more info I can provide.

            mawinter69 Markus Winter
            mwebber Matthew Webber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: