jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ross <pe...@emailross.com>
Subject Attempting to use RFC 5323 to search jackrabbit WEBDAV repository, but getting HTTP 405 response
Date Thu, 11 Oct 2012 06:20:53 GMT
Hi,

I'm trying to search a jackrabbit 2.4.1 repository using RFC 5323 commands.

According to <http://jackrabbit.apache.org/jackrabbit-webdav-library.html>
jackrabbit supports this mode of use.

Here is the trace of my attempt to do the search.

* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1... * connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
* Server auth using Basic with user 'admin'
> SEARCH /jackrabbit-webapp-2.4.1/repository/default HTTP/1.1
Authorization: Basic YWRtaW46YWRtaW4=
Host: localhost:8080
Accept: */*
Depth: infinity
Content-Type: text/xml; charset=utf-8
Content-Length: 370
Content-Type: application/x-www-form-urlencoded

where the xml sent is

"<D:searchrequest xmlns:D=\"DAV:\"> <D:basicsearch>    <D:select>
<D:allprop/>    </D:select>    <D:from>      <D:scope>
<D:href>http://localhost:8080/jackrabbit-webapp-2.4.1/repository/default/</D:href>
       <D:depth>infinity</D:depth>      </D:scope>    </D:from>
<D:where>      <D:contains>zz</D:contains>    </D:where>
<D:basicsearch><D:searchrequest>"

and I receive

< HTTP/1.1 405 Method Not Allowed
< Server: Apache-Coyote/1.1
< Content-Type: text/html;charset=utf-8
< Content-Length: 980
< Date: Thu, 11 Oct 2012 06:16:27 GMT
<

I'm not sure what I'm doing wrong.

Thanks in advance,
Peter

Mime
View raw message