[
https://issues.apache.org/jira/browse/WW-5011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16756936#comment-16756936
]
Jason Pyeron commented on WW-5011:
----------------------------------
{code:title=StrutsApplicationResource.java}
public static String extractPath(URL url)
{
if (url==null) return null;
String proto = url.getProtocol();
System.out.println(proto);
if ("file".equals(proto)) return
url.toExternalForm().substring(proto.length()+1);
return url.getPath();
}
public StrutsApplicationResource(URL url) {
super(extractPath(url));
this.url = url;
}
{code}
seems to work
> Tiles bug when parsing file:// URLs including # as part of the URL
> ------------------------------------------------------------------
>
> Key: WW-5011
> URL: https://issues.apache.org/jira/browse/WW-5011
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tiles
> Affects Versions: 2.5.17
> Reporter: Jason Pyeron
> Priority: Critical
>
> This prevents deployment of a tiles application to sub contexts on Tomcat or
> anywhere else the exploded war files' paths have certain special characters.
> Tiles is in the Attic, it is no longer being maintained.
> The Tiles plugin can shadow the particular class file as a workaround.
> I will submit a patch. Please advise which branch the patch should be based
> on. I need it for 2.5.17.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)