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

Role-based Authorization Strategy not working with sub-folders

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • role-strategy-plugin
    • Jenkins ver. 1.565.2
      CloudBees Folders Plugin 4.6.1
      Role-based Authorization Strategy 2.2.0
      Windows 7

      Using the folder structure below, trying to give a user access to ONLY the contents of FolderA. I'd expect

      .*FolderA.*

      to do that.

      To Reproduce:
      Create this folder structure:
      Folder1/
      Folder1/FolderA/
      Folder1/FolderA/JobA
      Folder1/FolderB/
      Folder1/FolderB/JobB
      Folder1/Job1

      Try these search expressions:

       -> ".*Folder1.*" Works
       -> ".*FolderA.*" Does NOT work
       -> ".*JobA.*" Does NOT work
       -> ".*FolderB.*" Does NOT work
       -> ".*JobB.*" Does NOT work
       -> ".*Job1.*" Does NOT work
      

          [JENKINS-24767] Role-based Authorization Strategy not working with sub-folders

          Eric Anker created issue -
          Daniel Beck made changes -
          Component/s Original: cloudbees-folder [ 18137 ]
          Assignee Original: Jesse Glick [ jglick ] New: Oleg Nenashev [ oleg_nenashev ]
          Eric Anker made changes -
          Description Original: Using the folder structure below, trying to give a user access to ONLY the contents of FolderA. I'd expect .*FolderA.* to do that.

          To Reproduce:
          Create this folder structure:
          Folder1/
          Folder1/FolderA/
          Folder1/FolderA/JobA
          Folder1/FolderB/
          Folder1/FolderB/JobB
          Folder1/Job1

          Try these search expressions:
           -> .*Folder1.* Works
           -> .*FolderA.* Does NOT work
           -> .*JobA.* Does NOT work
           -> .*FolderB.* Does NOT work
           -> .*JobB.* Does NOT work
           -> .*Job1.* Does NOT work
          New: Using the folder structure below, trying to give a user access to ONLY the contents of FolderA. I'd expect {noformat}.*FolderA.*{noformat} to do that.

          To Reproduce:
          Create this folder structure:
          Folder1/
          Folder1/FolderA/
          Folder1/FolderA/JobA
          Folder1/FolderB/
          Folder1/FolderB/JobB
          Folder1/Job1

          Try these search expressions:
          {noformat} -> ".*Folder1.*" Works
           -> ".*FolderA.*" Does NOT work
           -> ".*JobA.*" Does NOT work
           -> ".*FolderB.*" Does NOT work
           -> ".*JobB.*" Does NOT work
           -> ".*Job1.*" Does NOT work
          {noformat}
          Eric Anker made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Oleg Nenashev made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 157805 ] New: JNJira + In-Review [ 186231 ]
          Oleg Nenashev made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Alexander Krysko made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Alexander Krysko made changes -
          Comment [ Second comment is not very specific. In plugin configuration there are Global and Project roles. So
           * should there be Overall Read checkbox in a Global role
           * should there be Job Read checkbox in a Global role

          May I ask someone who succeeded in described configuration to attach screenshots? ]
          Oleg Nenashev made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Reopened [ 4 ] New: Fixed but Unreleased [ 10203 ]

            oleg_nenashev Oleg Nenashev
            bobtheshrew Eric Anker
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: