saokar / urlrewritefilter

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

Simple outbound-rule doesn't match DTD #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is with 3.2.0 beta.

My XML editor (something in Eclipse) checks XML against its DTD.  This XML 
has an error:

    <outbound-rule>
        <conditon type="server-name">asd</conditon>
        <from>foo</from>
        <to>bar</to>
    </outbound-rule> 

It's within a <urlrewrite> tag.  The error is:

The content of element type "outbound-rule" must match 
 "(name?,note?,condition*,from,set*,run*,to?)"

Which it does.  Maybe there's a DTD bug, maybe my editor has a bug.  That 
said, I have another issue, and I'm thinking this might be related.  With a 
similar (but more complex) outbound-rule, the regular expression in the 
condition is completely ignored; it doesn't care what server-name is.  I 
expected it to match the regular expression against the server-name in the 
request (yes, encodeURL is being called on the response, but I figured 
urlrewritefilter does a little internal record keeping.

Original issue reported on code.google.com by ehrm...@gmail.com on 25 Mar 2010 at 9:48

GoogleCodeExporter commented 9 years ago
It looks like I can't spell...

Original comment by ehrm...@gmail.com on 25 Mar 2010 at 10:30

GoogleCodeExporter commented 9 years ago
Check again, 
<conditon type="server-name">asd</conditon>

Says 'conditon' not 'condition'

Original comment by bobgutie...@gmail.com on 17 Mar 2011 at 7:06

GoogleCodeExporter commented 9 years ago

Original comment by p...@tuckey.org on 27 Oct 2011 at 10:39