tjg184 / urlrewritefilter

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

3.2 DTD fails validation #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Validate the 3.2 urlrewrite.xml using the doctype '<!DOCTYPE urlrewrite 
PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"
        "http://tuckey.org/res/dtds/urlrewrite3.2.dtd">' (in eclipse for me)
2. Validation fails but if I switch to <!DOCTYPE urlrewrite PUBLIC 
"-//tuckey.org//DTD UrlRewrite 3.0//EN"
        "http://tuckey.org/res/dtds/urlrewrite3.0.dtd"> and validate, it works without error.
3. At runtime there is a saxparserexception. Maybe the 3.2 dtd needs fixing?

What version of the product are you using? On what operating system?
3.2 on eclipse 3.5 on windows 7

Please provide any additional information below.
Example file:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"
        "http://tuckey.org/res/dtds/urlrewrite3.2.dtd">

<urlrewrite>
   <rule>
      <note>
         The rule means that requests to /test/status/ will be redirected to /rewrite-status
         the url will be rewritten.
        </note>
      <from>/portal$</from>
      <to type="redirect">%{context-path}/portal/</to>
   </rule>
</urlrewrite>

Original issue reported on code.google.com by david.en...@gmail.com on 16 Jul 2010 at 3:21

GoogleCodeExporter commented 9 years ago
I tried this in eclipse 3.5 on linux but could not reproduce it. What XML 
editor tools are you using? Is it possible you actually have the 3.0 jar and 
it's trying to pick out the DTD from there?

Original comment by krom...@gmail.com on 21 Jul 2010 at 2:13

GoogleCodeExporter commented 9 years ago
I can reproduce the error and I think the problem is that the url of the DTD is 
wrong. It leads to no DTD schema.

Original comment by dela...@gmail.com on 16 May 2011 at 7:07

GoogleCodeExporter commented 9 years ago
It appears that the "naked" tuckey.org domain is no longer the same as the 
"www.tuckey.org" domain.

To work around this, you can update your DOCTYPE's references of "tuckey.org" 
to "www.tuckey.org", e.g.:

http://www.tuckey.org/res/dtds/urlrewrite3.0.dtd

instead of:

http://tuckey.org/res/dtds/urlrewrite3.0.dtd

Original comment by alexpor...@gmail.com on 20 May 2011 at 6:06

GoogleCodeExporter commented 9 years ago
http://gamerprospersonalblog.blogspot.com/2011/08/solved-urlrewritexml-validatio
n-issue.html

has a solution to this problem

Original comment by tapasvi....@gmail.com on 1 Aug 2011 at 6:11

GoogleCodeExporter commented 9 years ago
I've updated all documentation to use the www.tuckey.org url.

Original comment by p...@tuckey.org on 25 Oct 2011 at 10:28