tjg184 / urlrewritefilter

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

UrlRewrite disables cookies #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
In the code I try to set a cookie by calling addCookie() on the
HttpServletResponse. The configuration:

web.xml:
...
<filter>
    <filter-name>UrlRewriteFilter</filter-name>
    <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>UrlRewriteFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
...

urlrewrite.xml:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 2.6//EN"
        "http://tuckey.org/res/dtds/urlrewrite2.6.dtd">
<urlrewrite>
    <rule>
        <note></note>
        <from>^/project/([\w\-\.]+)/([\w\-\.]+/)*([\w\-\.]+)\?*(\S*)$</from>
        <to>/$2$3?project=$1&amp;$4</to>
    </rule>

    <outbound-rule>
        <note></note>
        <from>^/([\w\-\.]+)\?project=([\w\-\.]+)&amp;*(.*)$</from>
        <to>/project/$2/$1?$3</to>
    </outbound-rule>
</urlrewrite>

What is the expected output? What do you see instead?
I should see the cookie in the HTTP header from the server but I do not. If
I disable urlrewrite by commenting that portion out in web.xml the cookie
gets sent out to the browser as it should.

What version of the product are you using? On what operating system?
I use 2.6.0 and running on tomcat 6.0.18 in an linux environment

Please provide any additional information below.

Original issue reported on code.google.com by glenn.g....@gmail.com on 20 Apr 2009 at 11:28

GoogleCodeExporter commented 9 years ago
Upgrading to 3.2.0 beta seems to fix the problem

Original comment by glenn.g....@gmail.com on 21 Apr 2009 at 8:24

GoogleCodeExporter commented 9 years ago
Seeing as ok in 3.2 won't fix.

Original comment by tuc...@gmail.com on 27 Apr 2009 at 4:54