You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Jacob Lund <jl...@qualiware.net> on 2004/09/23 12:49:57 UTC

DASL and scope

Hi

I have some problems getting the scope part of my query to work. If I want a 
search to only search through the /files/docs collection then I set scope to 
/files/docs/ and the uri in the header to /files/docs (see request below).

Server returns:
23 Sep 2004 12:46:10 - org.apache.slide.common.Domain - WARNING - scope 
/docs/ is invalid
http-81-Processor23, 23-sep-2004 12:46:10, root, SEARCH, 400 "Bad Request", 
16 ms, /files/docs

Client request:
SEARCH /files/docs HTTP/1.1
Host: localhost:82

<D:searchrequest xmlns:D="DAV:">
<D:basicsearch>
   <D:select>
       <D:allprop/>
    </D:select>
   <D:from>
        <D:scope>
            <D:href>/files/docs/</D:href>
            <D:depth>infinity</D:depth>
        </D:scope>
    </D:from>
    <D:where>
        <SLIDE:propcontains xmlns:SLIDE="http://jakarta.apache.org/slide/">
            <D:prop><D:displayname/></D:prop>
            <D:literal>New</D:literal>
        </SLIDE:propcontains>
    </D:where>
</D:basicsearch>
</D:searchrequest> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL and scope

Posted by Julian Reschke <ju...@gmx.de>.
Jacob Lund wrote:
> OK. I assume that you refer to the fact that a relative URI always must 
> start with a slash?

No, it doesn't have to.

> Looking at:
> http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#rfc.section.5.2.1 
> 
> Here the href in the scope has a tailing slash - is that also a valid 
> syntax? If so what is the difference between a uri with and without the 
> tailing slash?

That's irrelevant here; it depends on the WebDAV server.

My point was that DASL does define what a relative URI reference in a 
scope means (it's resolved against the request-URI).

Best regards, Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL and scope

Posted by Jacob Lund <jl...@qualiware.net>.
OK. I assume that you refer to the fact that a relative URI always must 
start with a slash?

Looking at:
http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#rfc.section.5.2.1
Here the href in the scope has a tailing slash - is that also a valid 
syntax? If so what is the difference between a uri with and without the 
tailing slash?

/jacob

----- Original Message ----- 
From: "Julian Reschke" <ju...@gmx.de>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Saturday, September 25, 2004 1:44 AM
Subject: Re: DASL and scope


> Jacob Lund wrote:
>> My slide installation is mapped to the root of the server.
>>
>> However I found a solution. If I set the uri in the request header to "/" 
>> and the scope to "files/docs" then it works. If the uri in the scope 
>> starts with a "/" then the request fails.
>>
>> Is that a bug? - the DASL document does not really specify this.
>
> a) yes,
>
> b) yes it does. If it's a URI reference, it is resolved against the 
> request URI.
>
> Julian
>
>
> -- 
> <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL and scope

Posted by Julian Reschke <ju...@gmx.de>.
Jacob Lund wrote:
> My slide installation is mapped to the root of the server.
> 
> However I found a solution. If I set the uri in the request header to 
> "/" and the scope to "files/docs" then it works. If the uri in the scope 
> starts with a "/" then the request fails.
> 
> Is that a bug? - the DASL document does not really specify this.

a) yes,

b) yes it does. If it's a URI reference, it is resolved against the 
request URI.

Julian


-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL and scope

Posted by Jacob Lund <jl...@qualiware.net>.
My slide installation is mapped to the root of the server.

However I found a solution. If I set the uri in the request header to "/" 
and the scope to "files/docs" then it works. If the uri in the scope starts 
with a "/" then the request fails.

Is that a bug? - the DASL document does not really specify this.

/jacob

----- Original Message ----- 
From: "Guido Casper" <gc...@s-und-n.de>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Friday, September 24, 2004 6:44 PM
Subject: Re: DASL and scope


>I believe, your scope should be "/slide/files/docs".
>
> Guido
>
> Jacob Lund wrote:
>> Hi
>>
>> I have some problems getting the scope part of my query to work. If I 
>> want a search to only search through the /files/docs collection then I 
>> set scope to /files/docs/ and the uri in the header to /files/docs (see 
>> request below).
>>
>> Server returns:
>> 23 Sep 2004 12:46:10 - org.apache.slide.common.Domain - WARNING - scope 
>> /docs/ is invalid
>> http-81-Processor23, 23-sep-2004 12:46:10, root, SEARCH, 400 "Bad 
>> Request", 16 ms, /files/docs
>>
>> Client request:
>> SEARCH /files/docs HTTP/1.1
>> Host: localhost:82
>>
>> <D:searchrequest xmlns:D="DAV:">
>> <D:basicsearch>
>>   <D:select>
>>       <D:allprop/>
>>    </D:select>
>>   <D:from>
>>        <D:scope>
>>            <D:href>/files/docs/</D:href>
>>            <D:depth>infinity</D:depth>
>>        </D:scope>
>>    </D:from>
>>    <D:where>
>>        <SLIDE:propcontains 
>> xmlns:SLIDE="http://jakarta.apache.org/slide/">
>>            <D:prop><D:displayname/></D:prop>
>>            <D:literal>New</D:literal>
>>        </SLIDE:propcontains>
>>    </D:where>
>> </D:basicsearch>
>> </D:searchrequest>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL and scope

Posted by Guido Casper <gc...@s-und-n.de>.
I believe, your scope should be "/slide/files/docs".

Guido

Jacob Lund wrote:
> Hi
> 
> I have some problems getting the scope part of my query to work. If I 
> want a search to only search through the /files/docs collection then I 
> set scope to /files/docs/ and the uri in the header to /files/docs (see 
> request below).
> 
> Server returns:
> 23 Sep 2004 12:46:10 - org.apache.slide.common.Domain - WARNING - scope 
> /docs/ is invalid
> http-81-Processor23, 23-sep-2004 12:46:10, root, SEARCH, 400 "Bad 
> Request", 16 ms, /files/docs
> 
> Client request:
> SEARCH /files/docs HTTP/1.1
> Host: localhost:82
> 
> <D:searchrequest xmlns:D="DAV:">
> <D:basicsearch>
>   <D:select>
>       <D:allprop/>
>    </D:select>
>   <D:from>
>        <D:scope>
>            <D:href>/files/docs/</D:href>
>            <D:depth>infinity</D:depth>
>        </D:scope>
>    </D:from>
>    <D:where>
>        <SLIDE:propcontains xmlns:SLIDE="http://jakarta.apache.org/slide/">
>            <D:prop><D:displayname/></D:prop>
>            <D:literal>New</D:literal>
>        </SLIDE:propcontains>
>    </D:where>
> </D:basicsearch>
> </D:searchrequest>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org