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

descriptorByName/hudson.security.AuthorizationMatrixProperty/checkName?value=%5BWORKDOMAIN%2FuserName%5D

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: security
    • Labels:
      None
    • Environment:
      Linux RedHat 2.6.18-194.el5, Apache Tomcat 6.0.29, java version "1.4.2"

      Description

      Access control configured using CAS. Project Matrix authorization strategy. After adding users in the table there are ERRORS.

      The ajax call is this (firebug helped me):
      http://###.###.###.####:8080/jenkins/jenkins/job/Empresi-Esb/descriptorByName/hudson.security.AuthorizationMatrixProperty/checkName?value=[WORKDOMAIN%2FuserName]

      (replaced the IP,the domain and the username for security reasons).

      It seems that the context name (jenkins) is repeated two times. I cannot understand how this link is builded by jenkins.
      The issue is also in single job matrix configurations.

      This issue seems to be linked to this other problem: http://jenkins.361315.n4.nabble.com/Validation-Problem-tp3226142p3226142.html

      In attachment there is a screenshot of "Manage Jenkins"

      1. jenkins.diff
        0.8 kB
        Alex Lehmann
      1. issue.png
        315 kB

        Issue Links

          Activity

          fridodev Federico Paolantoni created issue -
          fridodev Federico Paolantoni made changes -
          Field Original Value New Value
          Description Access control configured using CAS. Project Matrix authorization strategy. After adding users in the table there are ERRORS.

          The ajax call is this (firebug helped me):
          http://###.###.###.####:8080/jenkins/jenkins/job/Empresi-Esb/descriptorByName/hudson.security.AuthorizationMatrixProperty/checkName?value=[WORKDOMAIN%2FuserName]

          (replaced the IP,the domain and the username for security reasons).

          It seems that the context name (jenkins) is repeated two times. I cannot understand how this link is builded by jenkins.
          The issue is also in single job matrix configurations.

          In attachment there is a screenshot of "Manage Jenkins"
          Access control configured using CAS. Project Matrix authorization strategy. After adding users in the table there are ERRORS.

          The ajax call is this (firebug helped me):
          http://###.###.###.####:8080/jenkins/jenkins/job/Empresi-Esb/descriptorByName/hudson.security.AuthorizationMatrixProperty/checkName?value=[WORKDOMAIN%2FuserName]

          (replaced the IP,the domain and the username for security reasons).

          It seems that the context name (jenkins) is repeated two times. I cannot understand how this link is builded by jenkins.
          The issue is also in single job matrix configurations.

          This issue seems to be linked to this other problem: http://jenkins.361315.n4.nabble.com/Validation-Problem-tp3226142p3226142.html

          In attachment there is a screenshot of "Manage Jenkins"
          Hide
          alexlehm Alex Lehmann added a comment -

          I noticed the same issue with my install, 404 error on /hudson/hudson/...

          I have attached a diff to fix the problem in core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly

          Show
          alexlehm Alex Lehmann added a comment - I noticed the same issue with my install, 404 error on /hudson/hudson/... I have attached a diff to fix the problem in core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          Hide
          alexlehm Alex Lehmann added a comment -

          diff to core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly for jenkins-1.408-snapshot

          Show
          alexlehm Alex Lehmann added a comment - diff to core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly for jenkins-1.408-snapshot
          alexlehm Alex Lehmann made changes -
          Attachment jenkins.diff [ 20382 ]
          mindless Alan Harder made changes -
          Assignee Alan Harder [ mindless ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alanharder
          Path:
          core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          http://jenkins-ci.org/commit/jenkins/cd027f1f62b709db7779d1975c8c0c1968f29b9f
          Log:
          [FIXED JENKINS-9347] descriptorFullUrl already has context root,
          so don't preprend $

          {rootURL}

          .. thx alexlehm

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alanharder Path: core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly http://jenkins-ci.org/commit/jenkins/cd027f1f62b709db7779d1975c8c0c1968f29b9f Log: [FIXED JENKINS-9347] descriptorFullUrl already has context root, so don't preprend $ {rootURL} .. thx alexlehm
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #690
          [FIXED JENKINS-9347] descriptorFullUrl already has context root,

          alanharder : cd027f1f62b709db7779d1975c8c0c1968f29b9f
          Files :

          • core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #690 [FIXED JENKINS-9347] descriptorFullUrl already has context root, alanharder : cd027f1f62b709db7779d1975c8c0c1968f29b9f Files : core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          mrobinet mrobinet made changes -
          Link This issue is duplicated by JENKINS-9348 [ JENKINS-9348 ]
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #734
          [FIXED JENKINS-9347] descriptorFullUrl already has context root,

          Kohsuke Kawaguchi : f89ff9ac8c25cea4f286773c544fffb0baa68ec9
          Files :

          • core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #734 [FIXED JENKINS-9347] descriptorFullUrl already has context root, Kohsuke Kawaguchi : f89ff9ac8c25cea4f286773c544fffb0baa68ec9 Files : core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alanharder
          Path:
          core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          http://jenkins-ci.org/commit/jenkins/cd027f1f62b709db7779d1975c8c0c1968f29b9f
          Log:
          [FIXED JENKINS-9347] descriptorFullUrl already has context root,
          so don't preprend $

          {rootURL}

          .. thx alexlehm

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alanharder Path: core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly http://jenkins-ci.org/commit/jenkins/cd027f1f62b709db7779d1975c8c0c1968f29b9f Log: [FIXED JENKINS-9347] descriptorFullUrl already has context root, so don't preprend $ {rootURL} .. thx alexlehm
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alanharder
          Path:
          core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          http://jenkins-ci.org/commit/jenkins/f89ff9ac8c25cea4f286773c544fffb0baa68ec9
          Log:
          [FIXED JENKINS-9347] descriptorFullUrl already has context root,
          so don't preprend $

          {rootURL}

          .. thx alexlehm

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alanharder Path: core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly http://jenkins-ci.org/commit/jenkins/f89ff9ac8c25cea4f286773c544fffb0baa68ec9 Log: [FIXED JENKINS-9347] descriptorFullUrl already has context root, so don't preprend $ {rootURL} .. thx alexlehm
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alanharder
          Path:
          core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          http://jenkins-ci.org/commit/jenkins/cd027f1f62b709db7779d1975c8c0c1968f29b9f
          Log:
          [FIXED JENKINS-9347] descriptorFullUrl already has context root,
          so don't preprend $

          {rootURL}

          .. thx alexlehm

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alanharder Path: core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly http://jenkins-ci.org/commit/jenkins/cd027f1f62b709db7779d1975c8c0c1968f29b9f Log: [FIXED JENKINS-9347] descriptorFullUrl already has context root, so don't preprend $ {rootURL} .. thx alexlehm
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: alanharder
          Path:
          core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly
          http://jenkins-ci.org/commit/jenkins/f89ff9ac8c25cea4f286773c544fffb0baa68ec9
          Log:
          [FIXED JENKINS-9347] descriptorFullUrl already has context root,
          so don't preprend $

          {rootURL}

          .. thx alexlehm

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: alanharder Path: core/src/main/resources/hudson/security/GlobalMatrixAuthorizationStrategy/config.jelly http://jenkins-ci.org/commit/jenkins/f89ff9ac8c25cea4f286773c544fffb0baa68ec9 Log: [FIXED JENKINS-9347] descriptorFullUrl already has context root, so don't preprend $ {rootURL} .. thx alexlehm

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              fridodev Federico Paolantoni
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: