You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by bu...@apache.org on 2004/10/29 22:54:09 UTC
DO NOT REPLY [Bug 31974] New: -
[patch] Mixing binary and xml content in collection results to exceptions when doing an xquery
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31974>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31974
[patch] Mixing binary and xml content in collection results to exceptions when doing an xquery
Summary: [patch] Mixing binary and xml content in collection
results to exceptions when doing an xquery
Product: Xindice
Version: cvs head (1.1)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: DB Engine
AssignedTo: xindice-dev@xml.apache.org
ReportedBy: apache@Mig-O.de
What was wrong:
When inserting binary and xml-documents into the same collection, a
query results in an exception.
What did i fix:
I changed "Document getDocument(Object key)" to first have a look if
the ressource is a binary ressource, and then just returning null
instead of an XMLDocument, like if the ressource wasn't there at all.
How to test it:
I appended a small test class, and my change (not in diff-format, but
just replace the corresponding function, please.)