peony2012 / urlrewritefilter

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

3.2 Conf failed to load when the requested-session-id-from-url condition is used #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The configuration does not load and ends up with an exception when the example 
rule for jsessionid from the website is used. The reason seems to be missing 
condition type "requested-session-id-from-url" in the DTD for the 3.2 version.

  <rule>
       <name>Strip URL Session ID's</name>
       <note>
           Strip ;jsession=XXX from urls passed through response.encodeURL().
           The characters ? and # are the only things we can use to find out where the jsessionid ends.
           The expression in 'from' below contains three capture groups, the last two being optional.
               1, everything before ;jesessionid
               2, everything after ;jesessionid=XXX starting with a ? (to get the query string) up to #
               3, everything ;jesessionid=XXX and optionally ?XXX starting with a # (to get the target)
           eg,
           from index.jsp;jsessionid=sss?qqq to index.jsp?qqq
           from index.jsp;jsessionid=sss?qqq#ttt to index.jsp?qqq#ttt
           from index.jsp;jsessionid=asdasdasdsadsadasd#dfds - index.jsp#dfds
           from u.jsp;jsessionid=wert.hg - u.jsp
           from /;jsessionid=tyu - /
       </note>
       <condition type="requested-session-id-from-url" operator="equal">true</condition>
       <from>^(.*?)(?:\;jsessionid=[^\?#]*)?(\?[^#]*)?(#.*)?$</from>
       <to type="permanent-redirect">$1$2$3</to>
   </rule>

Original issue reported on code.google.com by Ivo.Jan...@gmail.com on 21 Nov 2010 at 11:04

GoogleCodeExporter commented 9 years ago
Plz refer to 
http://code.google.com/p/urlrewritefilter/issues/detail?id=57&can=1&q=jsessionid
&colspec=ID%20Type%20Status%20Summary%20Stars

Original comment by goden.incredible@gmail.com on 19 Jul 2011 at 9:24

GoogleCodeExporter commented 9 years ago

Original comment by p...@tuckey.org on 2 Jul 2012 at 11:03