Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not A Defect
-
Jenkins Version 2.249.2 running on Windows Server 2016 Datacenter
JRE Version 1.8.0_261-b12
Role Strategy Plugin Version 3.1
Description
Assume the following folder structure
Folder1/JobA Folder1/JobB Folder2/JobC
The global role for the user only has the Overall/Read permission and the configured project roles have all possible permissions.
When configuring a new project role for folder1 I want the pattern to be
^Folder1/.*
so only JobA and JobB can be accessed.
But when logging in with a user account that has only this permission only the empty "Welcome to Jenkins" page is displayed.
If I instead use the pattern
^Folder1.*
the user can access Folder1 and all items within as expected.
This seems to always happen when a forward slash / is used in the pattern and using the second pattern is not an option in my use case as someone could create eg. Folder 10 which would then also be matched.
Also the preview of matching Projects correctly displays all contents of Folder1 in both cases, although the first pattern doesn't actually grant access.
I have also tried to escape the forward slash with a backslash ( ^Folder1\/.* ) but that didn't help either.
I can confirm this issue when trying to grant access to credentials. inside folders
for jobs or Bitbucket projects the ^foldername/.* patter is working fine so far.
but for credentials I was advice to use something like ^foldername\b.* which works but has the issue that \b is not quite the same as /
wo I would like to have this issue fixed.
thanks.