[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Messages from hooks

From: Marcin Kasperski <Marcin.Kasperski_at_softax.com.pl>
Date: 2004-02-19 17:05:30 CET

> > I can't comment on the protocol but doesn't it possess some
> > way of telling the client what error has happened (even in
> > non hook-related case)?
>
> I don't know if WebDAV/DeltaV supports passing error
> information back (other than "the request failed" and a status
> code, as it's doing now).

I don't know DAV internals but considering the fact it works over
HTTP, at worst one can add

X-Subversion-ErrorMsg: <message goes here>

to the HTTP headers. Moreover, at the first glance, DAV specifies
'responsedescription' element so one can write

HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<d:multistatus xmlns:d="DAV:">
<d:response>
      <d:href>http://www.foo.bar/directory/element</d:href>
      <d:status>HTTP/1.1 412 Precondition Failed</d:status>
      <d:responsedescription>Subversion pre-commit hook failed
with message: comits to the stable branch must mention bug
numbers.</d:responsedescription>
 </d:response>
 </d:multistatus>

(as i read http://www.ietf.org/rfc/rfc2518.txt, seems that
responsedescription can be placed both within response and
sideways to it, I do not know which solution is preferable).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 19 17:05:49 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.