neharob / prettyfaces

Automatically exported from code.google.com/p/prettyfaces
0 stars 0 forks source link

Removing trailing slashes, globally, causes infinite redirect on '/' mappings #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by lincolnb...@gmail.com on 7 Apr 2010 at 2:51

GoogleCodeExporter commented 9 years ago
Fixed in 1.2.7 and 2.0.5

Original comment by lincolnb...@gmail.com on 12 May 2010 at 9:26