Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3737

Parsing of excludePattern breaks regex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.1.1
    • Dispatch Filter
    • None

    Description

      See buildExcludedPatternsList() in http://svn.apache.org/repos/asf/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/ng/InitOperations.java

      It simply splits on commas, making it impossible to write regex like "/products/[0-9]{1,10}.json" as this will be split in two.

      Please supply a way to escape commas by sticking a \ in front or something like that.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              eoftedal Erlend Oftedal
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h