You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "David Vanacker (Jira)" <ji...@apache.org> on 2023/05/15 23:48:00 UTC

[jira] [Created] (WW-5311) NamedVariablePatternMatcher throw IllegalArgumentException when named variable is not the last part of the sequence

David Vanacker created WW-5311:
----------------------------------

             Summary: NamedVariablePatternMatcher throw IllegalArgumentException when named variable is not the last part of the sequence
                 Key: WW-5311
                 URL: https://issues.apache.org/jira/browse/WW-5311
             Project: Struts 2
          Issue Type: Bug
          Components: Core
    Affects Versions: 6.1.2, 6.1.1
            Reporter: David Vanacker


This following snippet works as expected on Struts 6.0.3, but fails on 6.1.x.
 
new NamedVariablePatternMatcher().compilePattern("/\{first}/two/\{third}");
new NamedVariablePatternMatcher().compilePattern("/\{first}/two");
 
 
java.lang.IllegalArgumentException: Missing openning '\{' in [/{first}/two]!
 
at com.opensymphony.xwork2.util.NamedVariablePatternMatcher.compilePattern(NamedVariablePatternMatcher.java:91)
 
 
 
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)