[
https://issues.apache.org/jira/browse/TAP5-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship resolved TAP5-772.
---------------------------------------
Resolution: Duplicate
Assignee: Howard M. Lewis Ship
Duplicate of TAP5-743
> Strange behaviour when filter is mapped to different location that /*
> ---------------------------------------------------------------------
>
> Key: TAP5-772
> URL: https://issues.apache.org/jira/browse/TAP5-772
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Michael Wyraz
> Assignee: Howard M. Lewis Ship
>
> If the filter is mapped to anything else than /* tapestry is not working
> correctly anymore. Examples:
> If I map the filter to /test/*, every page fails with 404
> If I map a Servlet to that URL as well, every page renders but all generated
> links (resources, page links) are wrong (missing /test/).
> I think this behaviour depends on what request.gatPathInfo() returns:
> - if no servlet is mapped to the current url, it returns NULL.
> - otherwise, the uri minus the servlet's path
> So the result of request.getPathInfo() has nothing to do with the filter and
> should not be used there. Instead, the filter should have an init param which
> tells where It is mapped to and create a wraped ServletRequest with a
> customized getPathInfo().
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira