chkal/pf-issue-test — Issue #37: Removing trailing slashes, globally, causes infinite redirect on '/' mappings
Author: chkal
Created: 2012-03-06 07:21:23+00:00
State: open

Originally filed by **lincolnb...@gmail.com** on 2010-04-07T02:51:22

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=36

NOTE: For fastest resolution when reporting an issue, please provide attach
example project or file *with sources* that reproduces the problem.

What steps will reproduce the problem?
1. use a global rewrite rule to remove trailing slashes trailingSlash="remove"
2. map '/' to a view
3. access '/' -- infinite redirect occurs on most containers (GlassFish)

What is the expected output? What do you see instead?
Should not, by default, match on '/' to remove slashes -- it is a special case.

It can be avoided by using a match="^/.+$" case, but it should probably be
the default behavior.

What version of PrettyFaces are you using? On what server and version,
version of JSF, and other relevant technologies?

2.0.5-SNAPSHOT

Please provide any additional information below.