Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Trivial
-
Resolution: Fixed
-
Labels:
-
Similar Issues:
Description
If you have a security realm that allow user without READ to connect, the CLI will not accept a Logout command from that user.
$ java -jar /Users/<user>/Projects/jenkins/test/target/junit<random>/jenkins-cli.jar -s http://localhost:<port>/jenkins/ -noKeyAuth -auth user:user logout
ERROR: user is missing the Overall/Read permission
It seems this line is the culprit.
PS: that auth method is currently deprecated if I recall correctly.
Attachments
Issue Links
- links to
Code changed in jenkins
User: Wadeck Follonier
Path:
core/src/main/java/hudson/cli/CLICommand.java
test/src/test/java/hudson/cli/CLIActionTest.java
http://jenkins-ci.org/commit/jenkins/8a2f9865e8dfc4b25de603b693dcc09a99be85af
Log:
JENKINS-50324User without READ cannot logout - or even ask who they are(cherry picked from commit b5ed977bbca76f0ff1cd09ea9767d876e98aa64e)