[JIRA] (JENKINS-56391) Whitespace entered during role assignments is handled inconsistently

6 views
Skip to first unread message

anton.wiedermann@gmail.com (JIRA)

unread,
Mar 4, 2019, 10:35:02 AM3/4/19
to jenkinsc...@googlegroups.com
Anton Wiedermann created an issue
 
Jenkins / Bug JENKINS-56391
Whitespace entered during role assignments is handled inconsistently
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Components: role-strategy-plugin
Created: 2019-03-04 15:34
Environment: Jenkins ver. 2.166
Role-based Authorization Strategy 2.10
Priority: Minor Minor
Reporter: Anton Wiedermann

I have copy pasted user login when assigning user to a role. It went with some whitespace around it. I was able to add user like this just fine. Entry was resolved to full user name as expected but permissions granted to the user are not applied by Jenkins. 

Seems like user check should be consistent with permission application to the user. I would probably vote for trim of whitespace from entered user name. Or it should not be bale to resolve the user. Or at least display warning there is whitespace in login and results can be weird.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

martin.bickel@continental-corporation.com (JIRA)

unread,
Nov 18, 2019, 7:35:03 AM11/18/19
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

martin.bickel@continental-corporation.com (JIRA)

unread,
Nov 18, 2019, 7:35:03 AM11/18/19
to jenkinsc...@googlegroups.com
Martin Bickel edited a comment on Bug JENKINS-56391
As I was bitten by this problem myself, I've fixed it.

Pullrequest is at   [https://github.com/jenkinsci/role-strategy-plugin/ pulls pull/112 ]

o.v.nenashev@gmail.com (JIRA)

unread,
Dec 18, 2019, 6:33:03 AM12/18/19
to jenkinsc...@googlegroups.com
Change By: Oleg Nenashev
Status: Open Resolved
Resolution: Fixed
Released As: Role Strategy 2.16
Reply all
Reply to author
Forward
0 new messages