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

Job - Delete permission at Jenkins root level is needed to shelve the project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • shelve-project-plugin
    • None
    • * Jenkins 2.289.3
      * Shelve Project Plugin 3.2

      In the following scenario:

      • Choose `Project-based Matrix Authorization Strategy` Athorization strategy (and other like Role-Base strategy)
      • `user1` without the `job - delete` permission at the Jenkins root level.
      • `user1` with `job - delete` permission at the project (pipeline) level.

      The user is able to see the `delete project` link but not the `shelve project` link.

       

       

      Reviewing the source code, I found the following line:

       

      I believe the item that is currently visited should be checked and not the `Jenkins.getInstance()` item.

      This problem force us to grant job - deleting permission for all project if we want to shelve only one project.

        1. Assign Roles [Jenkins] — Mozilla Firefox_215.png
          297 kB
          Ignacio Roncero Bazarra
        2. Configure Global Security [Jenkins] — Mozilla Firefox_220.png
          274 kB
          Ignacio Roncero Bazarra
        3. Configure Global Security [Jenkins] — Mozilla Firefox_221.png
          305 kB
          Ignacio Roncero Bazarra
        4. freestyle [folder1] [Jenkins] - Google Chrome_218.png
          184 kB
          Ignacio Roncero Bazarra
        5. freestyle [folder1] [Jenkins] - Google Chrome_224.png
          195 kB
          Ignacio Roncero Bazarra
        6. freestyle [folder1] [Jenkins] — Mozilla Firefox (Private Browsing)_216.png
          186 kB
          Ignacio Roncero Bazarra
        7. freestyle [folder1] [Jenkins] — Mozilla Firefox (Private Browsing)_226.png
          197 kB
          Ignacio Roncero Bazarra
        8. freestyle Config [Jenkins] — Mozilla Firefox_222.png
          290 kB
          Ignacio Roncero Bazarra
        9. Manage Roles [Jenkins] — Mozilla Firefox_214.png
          329 kB
          Ignacio Roncero Bazarra
        10. pipeline [folder1] [Jenkins] - Google Chrome_219.png
          201 kB
          Ignacio Roncero Bazarra
        11. pipeline [folder1] [Jenkins] - Google Chrome_225.png
          213 kB
          Ignacio Roncero Bazarra
        12. pipeline [folder1] [Jenkins] — Mozilla Firefox (Private Browsing)_217.png
          217 kB
          Ignacio Roncero Bazarra
        13. pipeline [folder1] [Jenkins] — Mozilla Firefox (Private Browsing)_227.png
          203 kB
          Ignacio Roncero Bazarra
        14. pipeline Config [Jenkins] — Mozilla Firefox_223.png
          293 kB
          Ignacio Roncero Bazarra
        15. Selection_203.png
          109 kB
          Ignacio Roncero Bazarra
        16. Selection_204.png
          109 kB
          Ignacio Roncero Bazarra
        17. Selection_205.png
          57 kB
          Ignacio Roncero Bazarra
        18. Selection_206.png
          139 kB
          Ignacio Roncero Bazarra

            pierrebtz Pierre Beitz
            ironcerocloudbees Ignacio Roncero Bazarra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: