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

PROPFIND Requests, 403 forbidden and committing directories and files

From: Grant Ingersoll <gsingers_at_apache.org>
Date: Mon, 18 May 2009 09:52:34 -0400

Hi,

I'm a having a bit of trouble getting SVN 1.6.2 [1] up and running. I
am able to create my repository and I can checkout from it and browse
to it via web browser, etc. The problem comes in when I try to
commit. To summarize, I can add and commit directories, but I can
not commit files into those directories.

First off, I can commit a directory, as in:
>svn co https://my.domain.com/repos
>cd repos
>mkdir foo
>svn add foo
>svn ci -m "" foo
Adding foo

Committed revision 1.

Then, I switch into foo
> cd foo
>emacs tmp.txt //add some stuff to the file
> svn add tmp.txt
>svn ci -m "commit tmp" tmp.txt
Adding tmp.txt
svn: Commit failed (details follow):
svn: Server sent unexpected return value (403 Forbidden) in response
to PROPFIND request for '/repos/!svn/wrk/167b070c-ba0a-4504-b3da-
d5ff3e9b60ea/foo/tmp.txt'

Here's my httpd.conf setup:
<Location /repos>
   SVNReposName "Lucid SVN Repository"
   DAV svn
   SVNPath <Path to SVN>
   # Enable WebDAV automatic versioning
# SVNAutoversioning On
# Enable repository listing when browing the Location root
# SVNListParentPath On
  # Do basic password authentication in the clear
   AuthType Basic
   # The name of the protected area or "realm"
   AuthName "SVN"
   # Make LDAP the authentication mechanism
   AuthBasicProvider ldap
   # Make LDAP authentication is final
   AuthzLDAPAuthoritative on
   # The LDAP query URL
   AuthLDAPURL <EXCLUDED>
   AuthLDAPBindDN uid=<EXCLUDED>
   AuthLDAPBindPassword <EXCLUDED>
   # Require a valid user
   AuthzSVNAccessFile <Path to auth file>
#SVNPathAuthz short_circuit
   Require valid-user
</Location>

When I look in my logs, I see "Access granted: 'my.user' PROPFIND
repos:/foo" in several places

I've also tried it without the LDAP authorization and the access file,
and still get the same error (yes, I restarted httpd). I've also
verified all the paths are correct, etc. (I can browse to the
repository, including via svn list and I can check out, too)

I've also tried putting in LimitExcept per http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.serverconfig.httpd.authz.blanket
, but that just shifts the error.

I'm running httpd 2.2.

One curiosity that I cannot explain at all is that I had
SVNAutoversion uncommented it and then I could "commit" files via a
WebDAV client simply by dragging and dropping a file onto the mounted
drive (ie by connecting my Mac to SVN as web dav), but I still could
not commit via the command line.

Anyone have any ideas on what to try?

Thanks in advance,
Grant

[1] svn --version
svn, version 1.6.2 (r37639)
    compiled May 10 2009, 12:18:53

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2300050

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-18 15:57:51 CEST

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

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