tjg184 / urlrewritefilter

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

class-rule requires method= to be defined bug for v3.2.0 #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add a class-rule to your urlrewrite.xml file like so. NOTE do not
defined the method= part because the documentation says this is optional
<class-rule
class="com.sherwin.sd.urlrewritefilter.utils.rules.MultiLingualCountryLangRule"/
>
2. start the app
3.

What is the expected output? What do you see instead?
the app starts and the rule is loaded BUT what I see is the app never
starts because the URL rewrite filter never initializes. when I debug
methodStr is null meaning the default is never populated requiring me to
define method=matches to make it work.

i change my rule to this and it works
<class-rule
class="com.sherwin.sd.urlrewritefilter.utils.rules.MultiLingualCountryLangRule"
method="matches"/>

What version of the product are you using? On what operating system?

Please provide any additional information below.
using version 3.2.0

Original issue reported on code.google.com by william....@gmail.com on 5 Oct 2009 at 5:52

GoogleCodeExporter commented 9 years ago
Marking this as an invalid bug. It works as documented. My guess us that yours 
might
be a side effect of a bug that I recently reported -
http://code.google.com/p/urlrewritefilter/issues/detail?id=59

Original comment by avl...@gmail.com on 6 Jan 2010 at 5:30

GoogleCodeExporter commented 9 years ago
Forgot to mention this in the last comment - the class specified in your 
class-rule
should be a subclass of org.tuckey.web.filters.urlrewrite.extend.RewriteRule

Original comment by avl...@gmail.com on 6 Jan 2010 at 5:33