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

When I assign users to roles, changes are not applied until Jenkins restart

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: role-strategy-plugin
    • Labels:
      None
    • Environment:
      Java VM: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1
      Jenkins version: 2.221
      Role-based strategy plugin version: 2.16
      Active directory plugin: 2.16
    • Similar Issues:
    • Released As:
      Role Strategy 3.1

      Description

      INITIAL STATE:

      Users are logged using LDAP server (Active Directory Plugin).

      Permissions are given using Role-based strategy.

      Global roles and item roles have been created.

      A certain user is assigned a global role and certain item roles.

       

      STEPS TO REPRODUCE:

      1. Go to Jenkins administration > Manage and Assign Roles > Assign Roles.
      2. Change item roles for a specific user (check the box for a new item rol or uncheck).
      3. At the bottom of the page, click on Apply and Save.
      4. Log out and log in with that specific user you changed his roles.
      5. The user has the old permissions.
      6. Restart Jenkins.
      7. Log in again with that specific user.
      8. The user has the new permissions.

        Attachments

          Issue Links

            Activity

            jorgeksas Jorge Casas created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Something has changed recently, likely influence of the Jenkins Core Updates

            Show
            oleg_nenashev Oleg Nenashev added a comment - Something has changed recently, likely influence of the Jenkins Core Updates
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ] Hui Jun Ng [ blanked ]
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            The fix has been proposed by Hui Jun Ng and then released in 3.1: https://github.com/jenkinsci/role-strategy-plugin/releases/tag/role-strategy-3.1 . Thanks a lot to Hui Jun Ng for the contribution!

            My apologies to everyone who was affected and who waiting for the fix for so long. To indicate the maintenance status, I put the plugin for adoption. I will be happy to assist new maintainers and to help with onboarding. Any contributions to the plugin are welcome!

             

             

            Show
            oleg_nenashev Oleg Nenashev added a comment - The fix has been proposed by Hui Jun Ng  and then released in 3.1: https://github.com/jenkinsci/role-strategy-plugin/releases/tag/role-strategy-3.1  . Thanks a lot to Hui Jun Ng for the contribution! My apologies to everyone who was affected and who waiting for the fix for so long. To indicate the maintenance status, I put the plugin for adoption. I will be happy to assist new maintainers and to help with onboarding. Any contributions to the plugin are welcome!    
            oleg_nenashev Oleg Nenashev made changes -
            Released As Role Strategy 3.1
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-62219 [ JENKINS-62219 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue relates to JENKINS-61508 [ JENKINS-61508 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-61425 [ JENKINS-61425 ]

              People

              Assignee:
              blanked Hui Jun Ng
              Reporter:
              jorgeksas Jorge Casas
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: