jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Groovy Modules
  • GMOD-91

Integrate Catalog Resolver for HTML DTDs

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: HTTPBuilder-0.5.0
  • Component/s: HttpBuilder
  • Labels:
    None

Description

I was going to release RC1, then some unit tests started failing. It's because XmlSlurper is looking up the DTD every time, and W3C started blocking my IP/ User-Agent... See http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic

TO DO - use Apache Resolver (http://xml.apache.org/commons/components/resolver/index.html) to catalog common DTDs and schemas, so they are not downloaded when the documents are parsed.

See also: http://www.xml.com/pub/a/2004/03/03/catalogs.html
DTDs are downloaded even when validation is set to 'false.' Yay.

  • Options
    • Show All
    • Show Open

Sub-Tasks

1.
What DTDs/ Schemas, etc should be included by default? Sub-task Closed Closed Thom Nichols
 
2. Create API for user-defined catalogs. Sub-task Open Open Thom Nichols
 

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Thom Nichols added a comment - 12/Jun/09 1:23 PM - edited

r757. TO DO - also allow additional catalog files/DTDs to be added. See:
http://xml.apache.org/commons/components/apidocs/resolver/org/apache/xml/resolver/Catalog.html#parseCatalog(java.net.URL)

Most common use case would probably be to pass a publicId or systemId + URl to local DTD. Probably doable through Catalog#addEntry(). But other things like URI rewriting would probably be desirable... Maybe just leave the option to pass additional Catalog files.

Show
Thom Nichols added a comment - 12/Jun/09 1:23 PM - edited r757. TO DO - also allow additional catalog files/DTDs to be added. See: http://xml.apache.org/commons/components/apidocs/resolver/org/apache/xml/resolver/Catalog.html#parseCatalog(java.net.URL) Most common use case would probably be to pass a publicId or systemId + URl to local DTD. Probably doable through Catalog#addEntry(). But other things like URI rewriting would probably be desirable... Maybe just leave the option to pass additional Catalog files.
Hide
Permalink
Thom Nichols added a comment - 16/Jun/09 8:09 PM

Catalog is integrated to parsers; should add API to add new catalog definitions. Probably for 0.5.1.

Show
Thom Nichols added a comment - 16/Jun/09 8:09 PM Catalog is integrated to parsers; should add API to add new catalog definitions. Probably for 0.5.1.

People

  • Assignee:
    Thom Nichols
    Reporter:
    Thom Nichols
Vote (0)
Watch (0)

Dates

  • Created:
    12/Jun/09 11:05 AM
    Updated:
    29/Sep/10 8:04 PM
    Resolved:
    16/Jun/09 8:09 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.