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

Misleading message reported by the Help Command when permission is denied.

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: cli, core
    • Labels:
      None
    • Similar Issues:

      Description

      When a user without Overall/Read permission try to use Jenkins CLI, the message "You must authenticate to access this Jenkins" appears which is misleading. A message saying that the access is denied would be more appropriate.

      Example:

      • Generate SSH key
      • Attach the public key to a user in Jenkins
      • Remove permission so that this user does not have the Overall/Read permission
      • Run the following command:
      java -jar jenkins-cli.jar -s http://jenkins.server:8080/ -i ~/.ssh/id_rsa help
      
      • Following message appears:
      You must authenticate to access this Jenkins
      Use --username/--password/--password-file parameters or login command.
      

      Source code here: https://github.com/jenkinsci/jenkins/blob/jenkins-1.644/core/src/main/java/hudson/cli/HelpCommand.java#L52-L56

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                allan_burdajewicz Allan BURDAJEWICZ
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: