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

Unabortable builds due to catastrophic backtracking regular expression

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If the user enters a regular expression which results in catastrophic backtracking, the regular expression will run "forever" and the user will not be able to abort the build.

      The attached config.xml demonstrates the issue.

      The solution is to use an interruptible character sequence.

        Attachments

          Activity

          recampbell Ryan Campbell created issue -
          recampbell Ryan Campbell made changes -
          Field Original Value New Value
          Description If the user enters a regular expression which results in [catastrophic backtracking](http://www.rexegg.com/regex-explosive-quantifiers.html), the regular expression will run "forever" and the user will not be able to kill the build.

          The attached config.xml demonstrates the issue.

          The solution is to use an [interruptible character sequence[(http://ocpsoft.org/regex/how-to-interrupt-a-long-running-infinite-java-regular-expression/).
          If the user enters a regular expression which results in [catastrophic backtracking|http://www.rexegg.com/regex-explosive-quantifiers.html], the regular expression will run "forever" and the user will not be able to kill the build.

          The attached config.xml demonstrates the issue.

          The solution is to use an [interruptible character sequence|http://ocpsoft.org/regex/how-to-interrupt-a-long-running-infinite-java-regular-expression/].
          recampbell Ryan Campbell made changes -
          Summary Unkillable builds due to catastrophic backtracking regular expression Unabortable builds due to catastrophic backtracking regular expression
          Description If the user enters a regular expression which results in [catastrophic backtracking|http://www.rexegg.com/regex-explosive-quantifiers.html], the regular expression will run "forever" and the user will not be able to kill the build.

          The attached config.xml demonstrates the issue.

          The solution is to use an [interruptible character sequence|http://ocpsoft.org/regex/how-to-interrupt-a-long-running-infinite-java-regular-expression/].
          If the user enters a regular expression which results in [catastrophic backtracking|http://www.rexegg.com/regex-explosive-quantifiers.html], the regular expression will run "forever" and the user will not be able to abort the build.

          The attached config.xml demonstrates the issue.

          The solution is to use an [interruptible character sequence|http://ocpsoft.org/regex/how-to-interrupt-a-long-running-infinite-java-regular-expression/].
          ikedam ikedam made changes -
          Assignee Nicolas De Loof [ ndeloof ] ikedam [ ikedam ]
          ikedam ikedam made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          ikedam ikedam made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 158541 ] JNJira + In-Review [ 208084 ]

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              recampbell Ryan Campbell
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: