Summary: | [patch] Mixing binary and xml content in collection results to exceptions when doing an xquery | ||
---|---|---|---|
Product: | Xindice | Reporter: | Daniel Migowski <apache> |
Component: | DB Engine | Assignee: | Xindice Developers <xindice-dev> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | cvs head (1.1) | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
patch
Small program to reproduce the error Config for small program to replace the error |
Description
Daniel Migowski
2004-10-29 20:54:08 UTC
Created attachment 13265 [details]
patch
Created attachment 13266 [details]
Small program to reproduce the error
Created attachment 13267 [details]
Config for small program to replace the error
Use this instead if (!(entry instanceof Document)) { if (log.isErrorEnabled()) { log.error("Message", new DBException(FaultCodes.COL_INVALID_RESULT,"Resource '" + key + "' in collection '" + getCanonicalName() + "' is not a document")); } return null; } Fixed. Collection.getDocument should throw exception if resource of incorrect type, so fix was done at query resolver level. |