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

          James Nord added a comment -

          Which version of jenkins?
          What plugins do you have installed and what are their versions?
          What did you change from when this last worked

          James Nord added a comment - Which version of jenkins? What plugins do you have installed and what are their versions? What did you change from when this last worked

          Dominique Arnou added a comment - - edited

          Hello,

          today my version is 1.425

          And my plugins :

          	
          Jenkins SSH Slaves plugin	0.18	
          Token Macro Plugin	1.4	
          Maven Integration plugin	1.425	
          Repository Connector	0.7.0	
          Jenkins Subversion Plug-in	1.29	
          Jenkins CVS Plug-in	1.5	
          Jenkins Mantis plugin	0.11	
          LDAP Email Plugin	0.7	
          Jenkins disk-usage plugin	0.14	
          Dashboard View	2.0.2	
          Static Analysis Utilities	1.25	
          Static Analysis Collector Plug-in	1.16	
          Console Column Plugin	1.2		
          Jenkins Maven Info Plugin	0.0.4	
          DOS Trigger	1.21	
          Extended Choice Parameter Plug-In	0.4		
          Jenkins Selenium Plugin	1.4	
          Backup plugin	1.6.1	
          Jenkins Maven Release Plug-in Plug-in	0.7.1	
          Jenkins Parameterized Trigger plugin	2.11	
          Groovy Postbuild	1.4	
          Status View Plugin	1.0		
          Sidebar Link	1.6	
          Node Name Column	1.1		
          Hudson Personal View	1.8		
          Hudson Groovy builder	1.8	
          Jenkins promoted builds plugin	2.3	
          Log Parser Plugin	1.0.8	
          Maven Deployment Linker	1.3		
          Validating String Parameter Plugin	2.1	
          Deploy to container Plugin	1.8	
          Hudson batch task plugin	1.14	
          Configuration Slicing plugin	1.19	
          Hudson Google Calendar plugin	0.3		
          Jenkins Email Extension Plugin	2.14.1	
          View Job Filters	1.13	
          Hudson Subversion Tagging Plugin	1.15	
          Jenkins build timeout plugin	1.7	
          Hudson Post build task	1.8	
          Jenkins Job Configuration History Plugin	1.11	
          ChuckNorris Plugin	0.4		
          Nested View Plugin	1.8	
          Change Log History	1.3	
          Jenkins Jabber notifier plugin	1.19	
          Compact Columns	1.8	
          Hudson Cron Column Plugin	1.003		
          Green Balls	1.10	
          CIFS publisher plugin	1.1.14	
          Job Type Column	1.0		
          Jenkins Active Directory plugin	1.18	
          SiteMonitor Plugin	0.2	
          Hudson Sonar Plugin	1.6.1	
          Scriptler	1.5	
          Sectioned View Plugin	1.15	
          Rebuilder	1.9	
          Hudson DocLinks plugin	0.4	
          

          Plugins Deactivated :

          Promoted Builds (Simple)	1.9	
          Jenkins Artifactory Plugin	2.0.3
          Jenkins instant-messaging plugin	1.18	
          

          It worked fine with the Jenkins version of the beginning of May

          Dominique Arnou added a comment - - edited Hello, today my version is 1.425 And my plugins : Jenkins SSH Slaves plugin 0.18 Token Macro Plugin 1.4 Maven Integration plugin 1.425 Repository Connector 0.7.0 Jenkins Subversion Plug-in 1.29 Jenkins CVS Plug-in 1.5 Jenkins Mantis plugin 0.11 LDAP Email Plugin 0.7 Jenkins disk-usage plugin 0.14 Dashboard View 2.0.2 Static Analysis Utilities 1.25 Static Analysis Collector Plug-in 1.16 Console Column Plugin 1.2 Jenkins Maven Info Plugin 0.0.4 DOS Trigger 1.21 Extended Choice Parameter Plug-In 0.4 Jenkins Selenium Plugin 1.4 Backup plugin 1.6.1 Jenkins Maven Release Plug-in Plug-in 0.7.1 Jenkins Parameterized Trigger plugin 2.11 Groovy Postbuild 1.4 Status View Plugin 1.0 Sidebar Link 1.6 Node Name Column 1.1 Hudson Personal View 1.8 Hudson Groovy builder 1.8 Jenkins promoted builds plugin 2.3 Log Parser Plugin 1.0.8 Maven Deployment Linker 1.3 Validating String Parameter Plugin 2.1 Deploy to container Plugin 1.8 Hudson batch task plugin 1.14 Configuration Slicing plugin 1.19 Hudson Google Calendar plugin 0.3 Jenkins Email Extension Plugin 2.14.1 View Job Filters 1.13 Hudson Subversion Tagging Plugin 1.15 Jenkins build timeout plugin 1.7 Hudson Post build task 1.8 Jenkins Job Configuration History Plugin 1.11 ChuckNorris Plugin 0.4 Nested View Plugin 1.8 Change Log History 1.3 Jenkins Jabber notifier plugin 1.19 Compact Columns 1.8 Hudson Cron Column Plugin 1.003 Green Balls 1.10 CIFS publisher plugin 1.1.14 Job Type Column 1.0 Jenkins Active Directory plugin 1.18 SiteMonitor Plugin 0.2 Hudson Sonar Plugin 1.6.1 Scriptler 1.5 Sectioned View Plugin 1.15 Rebuilder 1.9 Hudson DocLinks plugin 0.4 Plugins Deactivated : Promoted Builds (Simple) 1.9 Jenkins Artifactory Plugin 2.0.3 Jenkins instant-messaging plugin 1.18 It worked fine with the Jenkins version of the beginning of May

          James Nord added a comment -

          "It worked fine with the Jenkins version of the beginning of May"

          With the same version of the Jenkins Maven Release Plug-in Plug-in?

          Are there any errors in the log?

          James Nord added a comment - "It worked fine with the Jenkins version of the beginning of May" With the same version of the Jenkins Maven Release Plug-in Plug-in? Are there any errors in the log?

          I think the version was already 0.7.1

          But if I try handling a fresh installation of Jenkins, I get the same problem (Jenkins 1426 and M2 Plugin Release 0.7.1): when I set up a Jenkins-based security projects, I do not get the checkbox "Job Release" on setting up jobs!

          Dominique Arnou added a comment - I think the version was already 0.7.1 But if I try handling a fresh installation of Jenkins, I get the same problem (Jenkins 1426 and M2 Plugin Release 0.7.1): when I set up a Jenkins-based security projects, I do not get the checkbox "Job Release" on setting up jobs!

          Dominique Arnou added a comment - - edited

          I have attached some screen shot

          Dominique Arnou added a comment - - edited I have attached some screen shot

          Project Configuration, without Release checkbox

          Dominique Arnou added a comment - Project Configuration, without Release checkbox

          In this screen, we can see the checkbox for give permissions for all the jobs

          Dominique Arnou added a comment - In this screen, we can see the checkbox for give permissions for all the jobs

          No plugin except m2release

          Dominique Arnou added a comment - No plugin except m2release

          James Nord added a comment -

          Adding core as this was working with earlier releases from description.
          I know the plugin is a bit wrong with its permission group, I wonder if the workaround is no longer valid. However fixing it would break all existing setups that usethe permission.

          James Nord added a comment - Adding core as this was working with earlier releases from description. I know the plugin is a bit wrong with its permission group, I wonder if the workaround is no longer valid. However fixing it would break all existing setups that usethe permission.

          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: