[jira] [Commented] (XERCESJ-1205) Entity resolution does not work with DTD grammar caching resolved

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (XERCESJ-1205) Entity resolution does not work with DTD grammar caching resolved

JIRA xerces-j-dev@xml.apache.org

    [ https://issues.apache.org/jira/browse/XERCESJ-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16216820#comment-16216820 ]

Mike Bremford commented on XERCESJ-1205:
----------------------------------------

Nine years since the initial report, seven years after a patch was supplied and still not fixed.

Attached is the patch from Thomas Krammer, modified as suggested by Radu Coravu, and adjusted to apply cleanly to r1813171. Last production release was 2.11.0. I've verified this patch still fixes the problem.

> Entity resolution does not work with DTD grammar caching resolved
> -----------------------------------------------------------------
>
>                 Key: XERCESJ-1205
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1205
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DTD
>    Affects Versions: 2.8.1
>         Environment: JDK1.5. The issue appears on various machines, Windows, Linux, Mac OSX. I don't believe it is platform specific.
>            Reporter: Tin Pavlinic
>            Assignee: Michael Glavassevich
>         Attachments: XERCESJ-1465.patch, bug.zip
>
>
> We have a DTD which defines some entities. We are parsing multiple documents against this DTD. If grammar caching is enabled, the entities are unresolved when the grammar is loaded from the cache, instead of the DTD.
> It seems that they are cleared every time a document is parsed and are only loaded when a DTD is loaded and not from the cache.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]