Pattern matching not working with forward slashes

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Oleg Nenashev
            Reporter:
            Mr King
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: