httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hilco Wijbenga" <hilco.wijbe...@gmail.com>
Subject [users@httpd] Subversion-1.5.1 behind Apache-2.2.9 & ErrorDocument 403
Date Fri, 26 Sep 2008 15:44:05 GMT
I sent the message below to the Subversion Users list first but I
didn't get a single reply. I'm hoping somebody here might be able to
help out even though it seems more of a Subversion issue.

I'm running Subversion behind Apache. I've created a setup where HTTP
allows anonymous, read-only access and HTTPS allows read-write access
for valid users.

This all works as desired but I'd like to improve the error message
for HTTP users who try to commit. Right now, they simply get

svn: Commit failed (details follow):
svn: Server sent unexpected return value (403 Forbidden) in response
to MKACTIVITY request for
'/svn/test/!svn/act/2e96e4f7-a25e-4102-96d4-e6c8458211c7'

which doesn't really explain (unless you already know) what went wrong.

I tried to solve this by adding

ErrorDocument 403 "You don't have commit privileges."

but the explanation doesn't show up when I try to commit again; I
still get the above 403 Forbidden.

Any idea why I don't see the message displayed? Is Subversion ignoring
it and simply displaying its own message?

Cheers,
Hilco

P.S. For the curious, this is the HTTP setup:
<IfDefine SVN>
 LoadModule dav_svn_module modules/mod_dav_svn.so
 <IfDefine SVN_AUTHZ>
   LoadModule authz_svn_module modules/mod_authz_svn.so
 </IfDefine>
 <Location /svn>
   DAV svn
   SVNParentPath /var/svn/repos
   SVNListParentPath on
   AuthName "Subversion Repository"
   ErrorDocument 403 "You don't have commit privileges."
   <LimitExcept GET PROPFIND OPTIONS REPORT>
     Deny from all
   </LimitExcept>
 </Location>
</IfDefine>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message