JBehave
  1. JBehave
  2. JBEHAVE-642

StackOverflowError in RegexStoryParser with long scenario titles

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.1
    • Fix Version/s: 3.5.4, 3.6
    • Component/s: Core
    • Labels:
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      Recently we started to use JBehave 3.5.1 in my project and since we use it as a way to automate our systems testing we have a need for rather long textual descriptions between the Scenario-keyword and the first Given. Then we run into the problem with long strings and the long known bug in Java RegExp library. I constructed a unit test that reproduces the error and then found a simple fix and some performance enhancement in the RegexStoryParser (patch attached).

      1. change.patch
        3 kB
        Jörgen Andersson

        Activity

        Mauro Talevi made changes -
        Field Original Value New Value
        Summary StackOverflowError in storyparser with long scenario names/descriptions. StackOverflowError in RegexStoryParser with long scenario names/descriptions.
        Fix Version/s 3.5.4 [ 18081 ]
        Fix Version/s 3.6 [ 17721 ]
        Mauro Talevi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Mauro Talevi [ maurotalevi ]
        Resolution Fixed [ 1 ]
        Mauro Talevi made changes -
        Summary StackOverflowError in RegexStoryParser with long scenario names/descriptions. StackOverflowError in RegexStoryParser with long scenario titles

          People

          • Assignee:
            Mauro Talevi
            Reporter:
            Jörgen Andersson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: