Reply To: Problems with enconded slashs inside param values

Splash Forums Rewrite Users Problems with enconded slashs inside param values Reply To: Problems with enconded slashs inside param values

#25944

gus.ehr
Participant

@Chris

You are right man.
The 404 status code above was my bad.

The problem is just the enconding of the slash in a path variable on Tomcat.

When I access the URL
/mapped/encrypted/foo/var
and change the rule to .addRule(Join.path("/mapped/encrypted/{data}").to("/page.jsf")).where("data").matches(".*")
the mapping works correctly.

When I access the URL
/mapped/encrypted/foo%2fvar,
change the rule to
.addRule(Join.path("/mapped/encrypted/{data}").to("/page.jsf")).where("data").matches(".*")
and add
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
in Tomcat the mapping works correctly.

Thank you for the help!

  • This reply was modified 7 years, 10 months ago by  gus.ehr.