hi ,
with the XMLDBTransformer, in the case where we let the generation of keyID to the database (the attribut oid=""),there a bug : the resuls oid is empty


Example :

<xindice:query type="create" oid="">
<coco>Hi erverybody</coco>
</xindice:query>

the result is  :
<xindice:query oid="" type="create" result="success" />
and not
<xindice:query oid="12131GSDSH323GD2" type="create" result="success" />


so i propose this little patch.. just add key=resource.getId(); after the creation


if("create".equals(operation)) {
try {
Resource resource = collection.createResource(key, "XMLResource");
resource.setContent(document);
collection.storeResource(resource);
result = "success";
---> key=resource.getId();
} catch (XMLDBException e) {
message = "Failed to create resource " + key + ": " + e.errorCode;
getLogger().debug(message, e);
}



Maisonneuve Nicolas


_________________________________________________________________
MSN Messenger 6 http://g.msn.fr/FR1001/866 : ajoutez une image � votre pseudo pour dialoguer avec vos amis



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to