Sorry, found it. Something went wrong in the automated creation of the
webdav server (it assigned a documents database, and enabled the execute
flag)..

Grtz

> -----Oorspronkelijk bericht-----
> Van: Geert Josten [mailto:[email protected]]
> Verzonden: donderdag 19 juli 2012 7:49
> Aan: MarkLogic Developer Discussion
> Onderwerp: WEBDAV not working in 5.0-3.1?
>
> Hi,
>
> Whenever I try to put or lock something through WEBDAV, I get this in
> return:
>
>       404 Not found, XDMP-UPDATEFUNCTIONFROMQUERY, Cannot apply an
> update function from a query
>
> Are there known issues, do I need to do things differently, or other
> ideas?
>
> I tried windows webdav support which is sending this request:
>
>       LOCK /test.txt HTTP/1.1
>       Cache-Control: no-cache
>       Connection: Keep-Alive
>       Pragma: no-cache
>       Content-Type: text/xml; charset="utf-8"
>       User-Agent: Microsoft-WebDAV-MiniRedir/6.1.7601
>       translate: f
>       Timeout: Second-3600
>       Content-Length: 211
>       Host: localhost:9999
>
>       <?xml version="1.0" encoding="utf-8" ?><D:lockinfo
> xmlns:D="DAV:"><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:w
> ri
> te/></D:locktype><D:owner><D:href>josten-
> laptop\josten</D:href></D:owner><
> /D:lockinfo>
>
> I tried a java webdav client from ant:
>
>       LOCK / HTTP/1.1
>       Content-Type: text/xml; charset=utf-8
>       User-Agent: Jakarta Commons-HttpClient/2.0final
>       Host: localhost:9999
>       Content-Length: 239
>       Depth: infinity
>       Timeout: Second-3600
>
>       <?xml version="1.0" encoding="UTF-8"?>
>       <DAV:lockinfo
> xmlns:DAV="DAV:"><DAV:lockscope><DAV:exclusive></DAV:exclusive></DAV:lo
> cks
> cope><DAV:locktype><DAV:write></DAV:write></DAV:locktype><DAV:owner>a
> nt-we
> bdav admin</DAV:owner></DAV:lockinfo>
>
> I also tried doing a plain put from qconsole:
>
> xdmp:http-put("http://localhost:9002/test.txt";,
>       <options xmlns="xdmp:http">
>               <authentication method="digest">
>                       <username>admin</username>
>                       <password>admin</password>
>               </authentication>
>               <data>test</data>
>               <headers>
>                       <content-type>text/plain</content-type>
>               </headers>
>       </options>
> )
>
> All give same response..
>
> I also tried creating root dir (which seemed to already exist), and
insert
> a /test.txt before doing these calls, but that doesn't seem to make a
> difference.
>
> Kind regards,
> Geert
>
> M.Sc. G.P.H. (Geert) Josten
> Senior Developer
>
>
> Dayon B.V.
> Delftechpark 37b
> 2628 XJ Delft
> The Netherlands
>
> T +31 (0)88 26 82 570
>
> [email protected]
> www.dayon.nl
>
> De informatie - verzonden in of met dit e-mailbericht - is afkomstig van
> Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
> bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen.
Aan
> dit bericht kunnen geen rechten worden ontleend.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to