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

Jenkins Crowd2 plugin does not return all groups from CROWD

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When users are members of a large number of CROWD groups (600+) not all CROWD groups are returned by the crowd2 plugin.  Observed in versions 1.8 and 1.9 of the plugin.  

      As a result some users are not seeing the replay build options because the groups which grant this access (which they are members of in CROWD) are not returned to Jenkins.

       

        Attachments

          Activity

          Hide
          pingunaut Martin Spielmann added a comment -

          In the current implementation, the groups of a user are fetched in a loop that gets 500 groups per run (I'm not sure if this is a good idea. To be reevaluated).

          So if there is an error during one of the requests, the user should have 500 or a multiple of 500 groups.

          (see https://github.com/jenkinsci/crowd2-plugin/blob/master/src/main/java/de/theit/jenkins/crowd/CrowdConfigurationService.java#L369)

          Show
          pingunaut Martin Spielmann added a comment - In the current implementation, the groups of a user are fetched in a loop that gets 500 groups per run (I'm not sure if this is a good idea. To be reevaluated). So if there is an error during one of the requests, the user should have 500 or a multiple of 500 groups. (see https://github.com/jenkinsci/crowd2-plugin/blob/master/src/main/java/de/theit/jenkins/crowd/CrowdConfigurationService.java#L369)
          Hide
          pingunaut Martin Spielmann added a comment -

          The latest beta release is running smoothly in our environment since a week. I would like to release 2.0.0

          Zhenlei Huang what do you think?

          Show
          pingunaut Martin Spielmann added a comment - The latest beta release is running smoothly in our environment since a week. I would like to release 2.0.0 Zhenlei Huang what do you think?
          Hide
          gmshake Zhenlei Huang added a comment -
          Show
          gmshake Zhenlei Huang added a comment - Martin Spielmann +1
          Hide
          gmshake Zhenlei Huang added a comment -

          Steven G Did you enable nested groups in your Crowd instance? Be sure enable nested groups in Jenkins as well.

          For network timeouts, check wether there're exceptions com.atlassian.crowd.exception.OperationFailedException in Jenkins logs.

          Show
          gmshake Zhenlei Huang added a comment - Steven G Did you enable nested groups in your Crowd instance? Be sure enable nested groups in Jenkins as well. For network timeouts, check wether there're exceptions com.atlassian.crowd.exception.OperationFailedException in Jenkins logs.
          Hide
          pingunaut Martin Spielmann added a comment -

          got no further feedback.

          please reopen if problem persists.

          Show
          pingunaut Martin Spielmann added a comment - got no further feedback. please reopen if problem persists.

            People

            Assignee:
            pingunaut Martin Spielmann
            Reporter:
            steveng Steven G
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: