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

Re: mod_dav_svn errors for POST and other requests

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 16 Apr 2013 14:19:48 +0100

Daniel Shahaf <danielsh_at_elego.de> writes:

> Philip Martin wrote on Tue, Apr 16, 2013 at 12:40:06 +0100:
>> $ svn -mm mkdir http://localhost:8888/obj/repo/A
>> svn: E000013: Can't move '/home/pm/sw/subversion/obj/repo/db/txn-protorevs/2-b.rev' to '/home/pm/sw/subversion/obj/repo/db/revs/0/3': Permission denied
>
> Are we sending "13" as an error code across the wire? That's a system
> error code (EACCES), not an svn error code, so in principle there is no
> guarantee the client can interpret it. (Not sure if that's a problem in
> practice.) Shouldn't we be returning an SVN_ERR_* error code?

Yes, we send 13.

HTTP/1.1 500 Internal Server Error\r
Date: Tue, 16 Apr 2013 13:17:44 GMT\r
Server: Apache/2.2.22 (Debian) mod_ssl/2.2.22 OpenSSL/1.0.1e DAV/2 SVN/1.9.0-dev\r
Content-Length: 291\r
Connection: close\r
Content-Type: text/xml; charset="utf-8"\r
\r
<?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="13">
Can't create directory '/home/pm/sw/subversion/obj/repo/db/transactions/2-g.txn': Permission denied
</m:human-readable>
</D:error>

I suppose that's another reason for not returning the low-level errors.

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2013-04-16 15:20:25 CEST

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.