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

@CLIMethods do not support authentication via SecurityRealm's CLIAuthenticator

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cli, core
    • None
    • 1.573

      When using the CLI with --username foo --password bar arguments (provided by AbstractPasswordBasedSecurityRealm), only CLICommand based commands (like help, who-am-i, and list-jobs) seem to work. @CLIMethod based commands (e.g. quiet-down) fail a permission check for anonymous.

          [JENKINS-23988] @CLIMethods do not support authentication via SecurityRealm's CLIAuthenticator

          Daniel Beck created issue -
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-22969 [ JENKINS-22969 ]
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 1340 (Web Link)" [ 11202 ]

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/cli/declarative/CLIRegisterer.java
          test/src/test/java/hudson/cli/CLIRegistererTest.java
          http://jenkins-ci.org/commit/jenkins/867884f6328a4a16899c49859230442b5316aee1
          Log:
          [FIXED JENKINS-23988] Consider CLIAuthenticator for CLIMethods

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/cli/declarative/CLIRegisterer.java test/src/test/java/hudson/cli/CLIRegistererTest.java http://jenkins-ci.org/commit/jenkins/867884f6328a4a16899c49859230442b5316aee1 Log: [FIXED JENKINS-23988] Consider CLIAuthenticator for CLIMethods
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Daniel Beck
          Path:
          core/src/main/java/hudson/cli/declarative/CLIRegisterer.java
          test/src/test/java/hudson/cli/CLIRegistererTest.java
          http://jenkins-ci.org/commit/jenkins/c869cfdc0e9ee0d6f77a9335b1055220e57bc7d5
          Log:
          Merge pull request #1340 from daniel-beck/JENKINS-23988

          [FIXED JENKINS-23988] Consider CLIAuthenticator for CLIMethods

          Compare: https://github.com/jenkinsci/jenkins/compare/1cf735417efc...c869cfdc0e9e

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/cli/declarative/CLIRegisterer.java test/src/test/java/hudson/cli/CLIRegistererTest.java http://jenkins-ci.org/commit/jenkins/c869cfdc0e9ee0d6f77a9335b1055220e57bc7d5 Log: Merge pull request #1340 from daniel-beck/ JENKINS-23988 [FIXED JENKINS-23988] Consider CLIAuthenticator for CLIMethods Compare: https://github.com/jenkinsci/jenkins/compare/1cf735417efc...c869cfdc0e9e

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3617
          [FIXED JENKINS-23988] Consider CLIAuthenticator for CLIMethods (Revision 867884f6328a4a16899c49859230442b5316aee1)

          Result = SUCCESS
          daniel-beck : 867884f6328a4a16899c49859230442b5316aee1
          Files :

          • test/src/test/java/hudson/cli/CLIRegistererTest.java
          • core/src/main/java/hudson/cli/declarative/CLIRegisterer.java

          dogfood added a comment - Integrated in jenkins_main_trunk #3617 [FIXED JENKINS-23988] Consider CLIAuthenticator for CLIMethods (Revision 867884f6328a4a16899c49859230442b5316aee1) Result = SUCCESS daniel-beck : 867884f6328a4a16899c49859230442b5316aee1 Files : test/src/test/java/hudson/cli/CLIRegistererTest.java core/src/main/java/hudson/cli/declarative/CLIRegisterer.java
          Daniel Beck made changes -
          Assignee New: Daniel Beck [ danielbeck ]

          snup snup added a comment -

          I'm using Jenkins version 1.576 and face the problem with using username/password on CLICommand.

          I tried to upgrade Jenkins to 1.577 but still facing the problem.
          I upgraded to Jenkins to 1.584 and the problem exist.
          All WAR file downloaded from http://mirrors.jenkins-ci.org/war/

          Since Jenkins is under Apache-Tomcat (on Unix Redhat OS) I renamed the old jenkins folder under ../webapps but it didn't help.
          of cource that I update also the jenkins-cli.jar that I use, related to the Jenkins version upgraded.

          Any advice what to do?
          Thanks

          snup snup added a comment - I'm using Jenkins version 1.576 and face the problem with using username/password on CLICommand. I tried to upgrade Jenkins to 1.577 but still facing the problem. I upgraded to Jenkins to 1.584 and the problem exist. All WAR file downloaded from http://mirrors.jenkins-ci.org/war/ Since Jenkins is under Apache-Tomcat (on Unix Redhat OS) I renamed the old jenkins folder under ../webapps but it didn't help. of cource that I update also the jenkins-cli.jar that I use, related to the Jenkins version upgraded. Any advice what to do? Thanks

            danielbeck Daniel Beck
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: