You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Peter Ross <pe...@emailross.com> on 2012/10/11 08:20:53 UTC
Attempting to use RFC 5323 to search jackrabbit WEBDAV repository,
but getting HTTP 405 response
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
Re: Attempting to use RFC 5323 to search jackrabbit WEBDAV repository,
but getting HTTP 405 response
Posted by Julian Reschke <ju...@gmx.de>.
On 2012-10-12 00:44, Peter Ross wrote:
> On 11 October 2012 20:42, Julian Reschke <ju...@gmx.de> wrote:
>> On 2012-10-11 08:20, Peter Ross wrote:
>>>
>>> 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.
>>> ...
>>
>>
>> AFAIK, Jackrabbit does not support DAV:basicsearch (but that doesn't explain
>> the 405).
>>
> Where can I find the documentation on what is supported?
<http://greenbytes.de/tech/webdav/rfc5323.html#rfc.section.3.3> shows
how to discover the supported grammars through WebDAV. Please try and
open a Jira issue if this does not work.
Best regards, Julian
Re: Attempting to use RFC 5323 to search jackrabbit WEBDAV
repository, but getting HTTP 405 response
Posted by Peter Ross <pe...@emailross.com>.
On 11 October 2012 20:42, Julian Reschke <ju...@gmx.de> wrote:
> On 2012-10-11 08:20, Peter Ross wrote:
>>
>> 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.
>> ...
>
>
> AFAIK, Jackrabbit does not support DAV:basicsearch (but that doesn't explain
> the 405).
>
Where can I find the documentation on what is supported?
Peter
Re: Attempting to use RFC 5323 to search jackrabbit WEBDAV repository,
but getting HTTP 405 response
Posted by Julian Reschke <ju...@gmx.de>.
On 2012-10-11 08:20, Peter Ross wrote:
> 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.
> ...
AFAIK, Jackrabbit does not support DAV:basicsearch (but that doesn't
explain the 405).
Best regards, Julian