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

Impossible to assign the permission release using project based matrix security

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core, m2release-plugin
    • None
    • Ubuntu Server

      The checkbox to assign permission to release for a job has disappeared. If you change the configuration of the job, the corresponding parameter (hudson.model.Item.Release) of the xml file disappears

      Before :

      <hudson.security.AuthorizationMatrixProperty>
            <permission>hudson.model.Item.Build:GG_1</permission>
            <permission>hudson.model.Item.Workspace:GG_1</permission>
            <permission>hudson.model.Item.Release:GG_1</permission>
      </hudson.security.AuthorizationMatrixProperty>
      

      After :

      <hudson.security.AuthorizationMatrixProperty>
            <permission>hudson.model.Item.Build:GG_1</permission>
            <permission>hudson.model.Item.Workspace:GG_1</permission>
      </hudson.security.AuthorizationMatrixProperty>
      

          [JENKINS-10661] Impossible to assign the permission release using project based matrix security

          dtriphaus added a comment -

          Any news about this? It's a pretty annoying bug...

          dtriphaus added a comment - Any news about this? It's a pretty annoying bug...

          James Nord added a comment -

          For clarity
          The permission works as expected for Matrix based security, but when using Project based Matrix security the permission is visible on the Jenkins config screen but missing from the JOb config screen.

          James Nord added a comment - For clarity The permission works as expected for Matrix based security, but when using Project based Matrix security the permission is visible on the Jenkins config screen but missing from the JOb config screen.

          James Nord added a comment -

          I believe this is due to the following change in core. https://github.com/jenkinsci/jenkins/commit/f5e0f001c0c608205e3c0b290af9115ab3fba32c#commitcomment-635765 Not sure how to fix this and keep to plugin compatable with LTS (and ideally Hudson).

          James Nord added a comment - I believe this is due to the following change in core. https://github.com/jenkinsci/jenkins/commit/f5e0f001c0c608205e3c0b290af9115ab3fba32c#commitcomment-635765 Not sure how to fix this and keep to plugin compatable with LTS (and ideally Hudson).

          Code changed in jenkins
          User: James Nord
          Path:
          src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java
          src/main/resources/org/jvnet/hudson/plugins/m2release/Messages.properties
          http://jenkins-ci.org/commit/m2release-plugin/63f9f3b6563d7000f94609db7cacd3d4c03a14bf
          Log:
          [FIXED JENKINS-10661] Permissions didn't work with project based matrix security.

          Jenkins core made an incompatible breaking change
          Keep compatability with other Jenkins/Hudson versions and the new versions with some ugly reflection.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java src/main/resources/org/jvnet/hudson/plugins/m2release/Messages.properties http://jenkins-ci.org/commit/m2release-plugin/63f9f3b6563d7000f94609db7cacd3d4c03a14bf Log: [FIXED JENKINS-10661] Permissions didn't work with project based matrix security. Jenkins core made an incompatible breaking change Keep compatability with other Jenkins/Hudson versions and the new versions with some ugly reflection.

          dogfood added a comment -

          Integrated in plugins_m2release #48
          [FIXED JENKINS-10661] Permissions didn't work with project based matrix security.

          James Nord :
          Files :

          • src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java
          • src/main/resources/org/jvnet/hudson/plugins/m2release/Messages.properties

          dogfood added a comment - Integrated in plugins_m2release #48 [FIXED JENKINS-10661] Permissions didn't work with project based matrix security. James Nord : Files : src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java src/main/resources/org/jvnet/hudson/plugins/m2release/Messages.properties

          mohan Kumar BM added a comment - it can be solved please check for details in the below link https://wiki.jenkins-ci.org/display/JENKINS/2012/01/03/Allow+access+to+specific+projects+for+Users%28Assigning+security+for+projects+in+Jenkins%29

          James Nord added a comment -

          can you verify that this is not fixed with the latest release as it works in my test setup.

          James Nord added a comment - can you verify that this is not fixed with the latest release as it works in my test setup.

          Hi
          i didn't get your problem,can you please send it or comment in detail.
          my comment (https://wiki.jenkins-ci.org/display/JENKINS/2012/01/03/Allow+access+to+specific+projects+for+Users%28Assigning+security+for+projects+in+Jenkins%29)
          is about assigning user based security and restricting users from viewing jobs in jenkins.
          you could probably check with a new jenkins.war

          mohan Kumar BM added a comment - Hi i didn't get your problem,can you please send it or comment in detail. my comment ( https://wiki.jenkins-ci.org/display/JENKINS/2012/01/03/Allow+access+to+specific+projects+for+Users%28Assigning+security+for+projects+in+Jenkins%29 ) is about assigning user based security and restricting users from viewing jobs in jenkins. you could probably check with a new jenkins.war

          Now in version 1450, I found the opportunity to check the option for project

          (however, nothing to do with this error, but the system no longer differentiates groups and users)

          Dominique Arnou added a comment - Now in version 1450, I found the opportunity to check the option for project (however, nothing to do with this error, but the system no longer differentiates groups and users)

          James Nord added a comment -

          as per previous fix - and latest comment.

          James Nord added a comment - as per previous fix - and latest comment.

            Unassigned Unassigned
            ptitrene Dominique Arnou
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: