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

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

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • core
    • Linux AWS, 64 bit

      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.

          [JENKINS-12543] CliAuthenticator (username/password) called too late to parse arguments (like job names)

          Matt Fair created issue -
          TGF made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Jesse Glick made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: cli [ 15624 ]
          Labels New: cli security
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Summary Original: CLI permissions New: CliAuthenticator (username/password) called too late to parse arguments (like job names)
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-14745 [ JENKINS-14745 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-23975 [ JENKINS-23975 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-23988 [ JENKINS-23988 ]
          Daniel Beck made changes -
          Priority Original: Critical [ 2 ] New: Minor [ 4 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 142909 ] New: JNJira + In-Review [ 175779 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-37510 [ JENKINS-37510 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-7791 [ JENKINS-7791 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-41745 [ JENKINS-41745 ]

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

              Created:
              Updated:
              Resolved: