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

CliAuthenticator (username/password) called too late to parse arguments (like job names)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Component/s: core
    • Labels:
    • Environment:
      Linux AWS, 64 bit
    • Similar Issues:

      Description

      I am using Jenkins 1.448, with 'Jenkins own user database' and 'Project-
      based Matrix Authorization Strategy'. I am able to get CLI to work as
      anonymous with permissions Overall build, Job read, and Job build enabled using
      the following command:

      java -jar jenkins-cli.jar -s http://my.domain.com:8080/ build -c
      myJobName

      However, when I try to do this as an authenticated user:

      java -jar jenkins-cli.jar -s http://my.domain.com:8080/ build -c
      myJobName --username myUsername --password myPassword

      I get the following error:

      No such job 'myJobName'

      If I however have Build read for anonymous checked, it works even though I have it
      checked for my other username also.

        Attachments

          Issue Links

            Activity

            mattfair Matt Fair created issue -
            aguno TGF made changes -
            Field Original Value New Value
            Priority Minor [ 4 ] Major [ 3 ]
            jglick Jesse Glick made changes -
            Summary CLI permissions CliAuthenticator (username/password) called too late to parse arguments (like job names)
            Labels cli security
            Priority Major [ 3 ] Critical [ 2 ]
            Component/s core [ 15593 ]
            Component/s cli [ 15624 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-14745 [ JENKINS-14745 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-23975 [ JENKINS-23975 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-23988 [ JENKINS-23988 ]
            danielbeck Daniel Beck made changes -
            Priority Critical [ 2 ] Minor [ 4 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 142909 ] JNJira + In-Review [ 175779 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-37510 [ JENKINS-37510 ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-7791 [ JENKINS-7791 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-41745 [ JENKINS-41745 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Won't Fix [ 2 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-260 (Web Link)" [ 18932 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                mattfair Matt Fair
              • Votes:
                15 Vote for this issue
                Watchers:
                31 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: