[
https://issues.apache.org/jira/browse/WW-3626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038413#comment-13038413
]
jagub zhang commented on WW-3626:
---------------------------------
i think it is wrong in class: com.opensymphony.xwork2.util.URLUtil
at line 23, col 126
private static final Pattern JAR_PATTERN =
Pattern.compile("^(jar:|wsjar:|zip:|vfsfile:|code-source:)?(file:)?(.*?)(\\!/|.jar/)(.*)");
if add \\ before .jar, can fix it
private static final Pattern JAR_PATTERN =
Pattern.compile("^(jar:|wsjar:|zip:|vfsfile:|code-source:)?(file:)?(.*?)(\\!/|\\.jar/)(.*)");
> URLUtil#normalizeToFileProtocol
> -------------------------------
>
> Key: WW-3626
> URL: https://issues.apache.org/jira/browse/WW-3626
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.1.8.1
> Reporter: jagub zhang
> Priority: Minor
>
> if path include word 'jar', the return value is wrong.
> ex.
> inport
> jar:file:/C:/workspace/projar/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml
> output file:/C:/workspace/pr
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira