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 kranga <kr...@k2d2.org> on 2004/06/16 23:36:08 UTC

REPORT method to find labeled version

I'm using reportMethod() and passing in a set of history hrefs and a
collection url thus producing a request of the form:

REPORT /slide/files HTTP/1.1
<stuff>

<?xml version="1.0" encoding="utf-8" ?>
<D:locate-by-history xmlns:D="DAV:">
   <D:version-history-set>
      <D:href>/slide/history/1/1.1</D:href>
      <D:href>/slide/history/1/1.2</D:href>
      <D:href>/slide/history/1/1.3</D:href>
      <D:href>/slide/history/1/1.4</D:href>
   </D:version-history-set>
   <D:prop>
      <D:label-name-set />
   </D:prop>
</D:locate-by-history>


The server response is:
HTTP/1.1 409 Conflict
<?xml version="1.0" encoding="UTF-8"?>
<D:error xmlns:D="DAV:">
<D:must-be-version-history />
</D:error>

If in the above request, I specify that actual file - REPORT
/slide/files/readme.txt, then I get the error:
HTTP/1.1 400 Bad Request: the request-URI must specify a collection
<?xml version="1.0" encoding="UTF-8"?>
<D:error xmlns:D="DAV:">
<D:must-be-collection />
</D:error>

This is urgent. I really need to figure this out. I'm doing a
proof-of-concept to see if slide will be a good fit. It also seems like
finding a version with a particular label should be a supported operation.
The following site tells me my initial request is correct. Is there a bug in
slide?

http://www.zvon.org/tmRFC/RFC3253/Output/chapter5.html

Thanks
Karthik


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


Re: REPORT method to find labeled version - solved

Posted by kranga <kr...@k2d2.org>.
Never mind :) I got the correct usage ... reportMethod(URL, PropertyVectory,
Depth) returns the value! On to parsing it ....

Thanks
Karthik

----- Original Message ----- 
From: "kranga" <kr...@k2d2.org>
To: "Slide Users Mailing List" <sl...@jakarta.apache.org>
Sent: Wednesday, June 16, 2004 5:36 PM
Subject: REPORT method to find labeled version


> I'm using reportMethod() and passing in a set of history hrefs and a
> collection url thus producing a request of the form:
>
> REPORT /slide/files HTTP/1.1
> <stuff>
>
> <?xml version="1.0" encoding="utf-8" ?>
> <D:locate-by-history xmlns:D="DAV:">
>    <D:version-history-set>
>       <D:href>/slide/history/1/1.1</D:href>
>       <D:href>/slide/history/1/1.2</D:href>
>       <D:href>/slide/history/1/1.3</D:href>
>       <D:href>/slide/history/1/1.4</D:href>
>    </D:version-history-set>
>    <D:prop>
>       <D:label-name-set />
>    </D:prop>
> </D:locate-by-history>
>
>
> The server response is:
> HTTP/1.1 409 Conflict
> <?xml version="1.0" encoding="UTF-8"?>
> <D:error xmlns:D="DAV:">
> <D:must-be-version-history />
> </D:error>
>
> If in the above request, I specify that actual file - REPORT
> /slide/files/readme.txt, then I get the error:
> HTTP/1.1 400 Bad Request: the request-URI must specify a collection
> <?xml version="1.0" encoding="UTF-8"?>
> <D:error xmlns:D="DAV:">
> <D:must-be-collection />
> </D:error>
>
> This is urgent. I really need to figure this out. I'm doing a
> proof-of-concept to see if slide will be a good fit. It also seems like
> finding a version with a particular label should be a supported operation.
> The following site tells me my initial request is correct. Is there a bug
in
> slide?
>
> http://www.zvon.org/tmRFC/RFC3253/Output/chapter5.html
>
> Thanks
> Karthik
>
>
> ---------------------------------------------------------------------
> 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