You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Andrew Wilcox <aw...@everage.ca> on 2004/08/19 16:53:25 UTC
DAV:property-report
Hi,
I am trying to make a REPORT request for the 'property-report' to
subversion from a browser using javascript, but alas it is not working.
Here's what I am doing:
Request function:
function getHistory(url){
var objHTTP = new ActiveXObject("Microsoft.XMLHTTP");
objHTTP.open("REPORT", url, false);
var message = '<?xml version="1.0" encoding="UTF-8"?><D:property-report
xmlns:D="DAV:"><D:prop><D:creationdate/></D:prop></D:property-report>';
objHTTP.send(message);
return objHTTP.responseText;
}
And here is the response:
<?xml version="1.0" encoding="utf-8"?>
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns"
xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="200007">
The requested report is unknown.
</m:human-readable>
</D:error>
Do I have the report name (property-report) correct? Does anyone have a
list of custom reports taht subversion uses? Thanks for your help.
Andy
Re: DAV:property-report
Posted by Ben Reser <be...@reser.org>.
On Thu, Aug 19, 2004 at 01:53:25PM -0300, Andrew Wilcox wrote:
> Hi,
> I am trying to make a REPORT request for the 'property-report' to
> subversion from a browser using javascript, but alas it is not working.
> Here's what I am doing:
>
> Request function:
>
> function getHistory(url){
> var objHTTP = new ActiveXObject("Microsoft.XMLHTTP");
> objHTTP.open("REPORT", url, false);
> var message = '<?xml version="1.0" encoding="UTF-8"?><D:property-report
> xmlns:D="DAV:"><D:prop><D:creationdate/></D:prop></D:property-report>';
> objHTTP.send(message);
> return objHTTP.responseText;
> }
>
> And here is the response:
>
> <?xml version="1.0" encoding="utf-8"?>
> <D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns"
> xmlns:C="svn:">
> <C:error/>
> <m:human-readable errcode="200007">
> The requested report is unknown.
> </m:human-readable>
> </D:error>
>
> Do I have the report name (property-report) correct? Does anyone have a
> list of custom reports taht subversion uses? Thanks for your help.
I think what you want is a PROPFIND request. See section 8.1 of RFC
2518.
--
Ben Reser <be...@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: DAV:property-report
Posted by Ben Collins-Sussman <su...@collab.net>.
On Thu, 2004-08-19 at 11:53, Andrew Wilcox wrote:
> Do I have the report name (property-report) correct?
What's a 'property-report'? Is that some standard report that generic
DAV servers are all supposed to understand?
If so, this is just one more way in which Subversion is not a 100%
compliant DAV server. Not big news, certainly.
> Does anyone have a list of custom reports taht subversion uses?
It has whole bunches of custom REPORTs, for doing things that don't map
to webdav semantics. It understands the following svn-only report
requests:
update-report
log-report
dated-rev-report
get-locations
file-revs-report
See mod_dav_svn/version.c:dav_svn_deliver_report()
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org