From: Adam R. <ad...@ex...> - 2012-09-01 15:55:52
|
Wolf, I have run the script that you provided. Apart from having to add in the group of the admin user it all appears to run perfectly here. Could an already corrupt database result in eXist-db thinking that XML documents are binary documents and reporting that to the RestXqTrigger? Thanks Adam. On 31 August 2012 20:55, Adam Retter <ad...@ex...> wrote: > On 31 August 2012 20:43, Wolfgang Meier <wol...@ex...> wrote: >> Actually I'm getting different errors now when enabling restxq: >> >> Caused by: org.exist.extensions.exquery.restxq.impl.RestXqServiceCompilationException: Invalid document location for XQu >> ery: /db/test/expath-pkg.xml >> at org.exist.extensions.exquery.restxq.impl.RestXqTrigger.findServices(RestXqTrigger.java:123) >> at org.exist.extensions.exquery.restxq.impl.RestXqTrigger.afterCreateDocument(RestXqTrigger.java:64) >> at org.exist.collections.triggers.DocumentTriggersVisitor.afterCreateDocument(DocumentTriggersVisitor.java:84) >> at org.exist.collections.Collection.storeXMLInternal(Collection.java:1359) >> at org.exist.collections.Collection.store(Collection.java:1256) >> at org.exist.xmldb.LocalCollection.storeXMLResource(LocalCollection.java:821) >> ... 65 more >> >> >> >> expath-pkg.xml is neither a binary resource nor an XQuery!?! I don't understand why the RestXqTrigger is trying to compile it. Here's a small test query with which reproduces the issue for me (note that the db will be damaged after running this and has to be cleaned): > > The RestXqTrigger simply asks eXist two questions: > > 1) is this a binary document > 2) does it have an xquery mimetype > > If both are not true then it will not compile the query. At the moment > I suspect a bug deeper in eXist somewhere perhaps where its reporting > the wrong document type. I will dig into it later this eve if I can. > Im still in the office at the moment. > > > -- > Adam Retter > > eXist Developer > { United Kingdom } > ad...@ex... > irc://irc.freenode.net/existdb -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |