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

Add quote character to role pattern to avoid white spaces

    • Role Strategy 2.10

      When you create a new role and add an extra space at the end or beginning of the patter, the table does not show this extra space.

      Would be very useful add quote characters showing the complete pattern to avoid confusion and headaches.

      An example of how it can appear :

      Or using a different character.

       

       

          [JENKINS-49102] Add quote character to role pattern to avoid white spaces

          Oleg Nenashev added a comment -

          Unassigning the issue for now. We have added two Role Strategy plugin project ideas to GSoC 2019: https://jenkins.io/projects/gsoc/2019/project-ideas/. If somebody is interested in co-mentoring the ideas (including these tickets), please let us know

          Oleg Nenashev added a comment - Unassigning the issue for now. We have added two Role Strategy plugin project ideas to GSoC 2019: https://jenkins.io/projects/gsoc/2019/project-ideas/ . If somebody is interested in co-mentoring the ideas (including these tickets), please let us know

          Vishal Khanna added a comment - - edited

          Vishal Khanna added a comment - - edited Made a PR for this ticket-  https://github.com/jenkinsci/role-strategy-plugin/pull/50 [cc oleg_nenashev ]

          Oleg Nenashev added a comment -

          It was released in Role Strategy 2.10

          Oleg Nenashev added a comment - It was released in Role Strategy 2.10

          Alec Matschiner added a comment - - edited

          I just hit the following issue with v2.10 of the Role-based Auth plugin.  I created a top level folder (e.g. Top-Foo) and I was unable to create a pattern that matched to this top level folder.  I tried the following patterns: .* , Top-Foo.* , T.* and nothing was able to recognize that top level folder.  I ended up downgrading to version 2.9 and I was able to get my normal method of Top-Foo.* to work.  Is this change only looking jobs within folders and not top level folders themselves or is my regex incorrect with the new version?

          Alec Matschiner added a comment - - edited I just hit the following issue with v2.10 of the Role-based Auth plugin.  I created a top level folder (e.g. Top-Foo) and I was unable to create a pattern that matched to this top level folder.  I tried the following patterns: .* , Top-Foo.* , T.* and nothing was able to recognize that top level folder.  I ended up downgrading to version 2.9 and I was able to get my normal method of Top-Foo.* to work.  Is this change only looking jobs within folders and not top level folders themselves or is my regex incorrect with the new version?

          sakshi sood added a comment -

          I am hitting an issue with v2.10 of this plugin due to quotes in role pattern. We have project based folders on top level of jenkins which follows this regex (?i)abc(/.*)? which is no more working now. Its working in our PROD servers having old version of this plugin. Kindly fix the issue. I need to downgrade the plugin now.

          sakshi sood added a comment - I am hitting an issue with v2.10 of this plugin due to quotes in role pattern. We have project based folders on top level of jenkins which follows this regex (?i)abc(/.*)? which is no more working now. Its working in our PROD servers having old version of this plugin. Kindly fix the issue. I need to downgrade the plugin now.

            vishaldotkhanna Vishal Khanna
            fernando_rosado Fernando Rosado Altamirano
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: