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

Role Strategy Plugin doesn't support "<" and ">" characters in regular expression

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: role-strategy-plugin
    • Labels:
      None
    • Environment:
      Hudson 1.383
      Tomcat 6.0.0.29
      OS Name: Linux
      OS Version: 2.6.18-128.el5
      Architecture: amd64
      JVM Version: 1.6.0-b09
    • Similar Issues:

      Description

      After adding a role with the the regular expression: Project.(?<!Release).
      I cannot add any other role or change the already added ones and I get the fallowing error:

      type Exception report
      message
      description The server encountered an internal error () that prevented it from fulfilling this request.
      exception
      javax.servlet.ServletException: net.sf.json.JSONException: JSONObject["pattern"] not found.

      I attached the complete error log.
      Thanks in advance for your help.

        Attachments

        1. JENKINS-8058.diff
          0.9 kB
        2. log.txt
          7 kB
        3. regexpcheck.txt
          8 kB

          Activity

          Hide
          rseguy Romain Seguy added a comment -

          The patch worked fine, thanks. I've had to add another HTML escape to handle in-place edit.

          Show
          rseguy Romain Seguy added a comment - The patch worked fine, thanks. I've had to add another HTML escape to handle in-place edit.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: rseguy
          Path:
          src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-project-roles.jelly
          src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-roles.jelly
          http://jenkins-ci.org/commit/role-strategy-plugin/d182e2a0849ff7de7f9b47d7c7370fdf9105d467
          Log:
          [FIXED JENKINS-8058] Role Strategy Plugin doesn't support "<" and ">" characters in regular expression

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rseguy Path: src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-project-roles.jelly src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-roles.jelly http://jenkins-ci.org/commit/role-strategy-plugin/d182e2a0849ff7de7f9b47d7c7370fdf9105d467 Log: [FIXED JENKINS-8058] Role Strategy Plugin doesn't support "<" and ">" characters in regular expression
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: rseguy
          Path:
          src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-project-roles.jelly
          src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-roles.jelly
          http://jenkins-ci.org/commit/role-strategy-plugin/d182e2a0849ff7de7f9b47d7c7370fdf9105d467
          Log:
          [FIXED JENKINS-8058] Role Strategy Plugin doesn't support "<" and ">" characters in regular expression

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: rseguy Path: src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-project-roles.jelly src/main/resources/com/michelin/cio/hudson/plugins/rolestrategy/RoleStrategyConfig/manage-roles.jelly http://jenkins-ci.org/commit/role-strategy-plugin/d182e2a0849ff7de7f9b47d7c7370fdf9105d467 Log: [FIXED JENKINS-8058] Role Strategy Plugin doesn't support "<" and ">" characters in regular expression
          Hide
          tbingaman Timothy Bingaman added a comment -

          Ah right, good call, I hadn't gotten as far as checking the inline edit.
          Thanks a lot for fixing this, it's a great plugin

          Show
          tbingaman Timothy Bingaman added a comment - Ah right, good call, I hadn't gotten as far as checking the inline edit. Thanks a lot for fixing this, it's a great plugin
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Closing the issue

          Show
          oleg_nenashev Oleg Nenashev added a comment - Closing the issue

            People

            • Assignee:
              Unassigned
              Reporter:
              ancavpg ancavpg
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: