Johan Sjöberg (JIRA)
2016-08-18 14:57:22 UTC
Johan Sjöberg created COCOON-2351:
-------------------------------------
Summary: ContextSourceFactory calculates the path incorrectly when removing the protocol part
Key: COCOON-2351
URL: https://issues.apache.org/jira/browse/COCOON-2351
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core
Affects Versions: 2.1.12
Reporter: Johan Sjöberg
Priority: Minor
Fix For: 2.1.13
On line 96 in org.apache.cocoon.components.source.impl.ContextSourceFactory the removal of protocol and the first '/' leaves two slashes in the path. It should be:
final String path = location.substring(pos+2);
This probably worked on older servlet engines but fails at least on Jetty newer than 8.1.11 and 9.0.6 when indexing into paths like context://foo.bar which results in a call to ServletContext.getRealPath("//foo.bar")
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
-------------------------------------
Summary: ContextSourceFactory calculates the path incorrectly when removing the protocol part
Key: COCOON-2351
URL: https://issues.apache.org/jira/browse/COCOON-2351
Project: Cocoon
Issue Type: Bug
Components: * Cocoon Core
Affects Versions: 2.1.12
Reporter: Johan Sjöberg
Priority: Minor
Fix For: 2.1.13
On line 96 in org.apache.cocoon.components.source.impl.ContextSourceFactory the removal of protocol and the first '/' leaves two slashes in the path. It should be:
final String path = location.substring(pos+2);
This probably worked on older servlet engines but fails at least on Jetty newer than 8.1.11 and 9.0.6 when indexing into paths like context://foo.bar which results in a call to ServletContext.getRealPath("//foo.bar")
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)