You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by cowwoc <co...@bbs.darktech.org> on 2009/01/28 22:11:27 UTC

Re: svn copy fails with 400 Bad request

I just ran across this issue in Subversion 1.5.5. Turns out that I was simply
missing "DAV svn" in my apache configuration.

Here is what my configuration looked like:

<LocationMatch />
  DAV svn
  SVNParentPath /var/svn/repositories
  SVNListParentPath on
</LocationMatch>
<LocationMatch /.+>
  #DAV svn
  #SVNParentPath /var/svn/repositories
  AuthzSVNAccessFile //etc/opt/CollabNet_Subversion/conf/svn_access_file
  Satisfy Any
  Require valid-user
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile //etc/opt/CollabNet_Subversion/conf/svn_auth_file
</LocationMatch>

Uncommenting "DAV svn" fixed the problem.

Gili


Andrew LeCody wrote:
> 
> When I comment out the lines for AuthzSVNAccessFile, I'm able copy. This
> may be an issue with mod_authz_svn. For now I'll just do without
> fine-grained access controls.
> 
> Thank you,
> Andrew LeCody
> 
> Andrew LeCody wrote:
>> I am having the same issue, it's very frustrating. I setup a test repo,
>> created a directory called "testdir", and created a test text file in
>> that directory. I then made a commit, and updated my working copy. Next
>> I issued the command "svn copy testdir testdir2" which worked without
>> issue. When trying to commit however, I got the following error:
>> 
>> $ svn commit
>> Adding         testdir2
>> svn: Commit failed (details follow):
>> svn: COPY of testdir2: 400 Bad Request (https://devel.propagation.net)
>> svn: Your commit message was left in a temporary file:
>> svn:    '/tmp/test/svn-commit.tmp'
>> 
>> This is not a firewall/anti-virus issue, I am connecting using SSL, and
>> there are no modules such as mod_security on the server. Here is the
>> setup I'm using:
>> 
>> Server: Debian Lenny with apache2 (2.2.9), subversion 1.5.1, and
>> mod_dav_svn 1.5.1
>> Client: Ubuntu Hardy 8.04.1 with subversion 1.4.6
>> 
>> Also of note I have this same issue regardless of the client I use (I
>> have tried my 3 other systems, one of which is Windows XP using
>> TortoiseSVN). I have this same issue on another server running Ubuntu
>> Hardy 8.04.1, apache2 (2.2.8), subversion 1.4.6 and mod_dav_svn 1.4.6.
>> 
>> While there is no error in the apache error log, there is an entry in
>> the access log, and it shows the return code is 400. Here is the entry
>> from the log file:
>> 
>> 66.34.9.1 - andrewl [26/Aug/2008:15:15:48 -0500] "COPY
>> /svn/test/!svn/bc/3/testdir HTTP/1.1" 400 388 "-" "SVN/1.4.6 (r28521)
>> neon/0.27.2"
>> 
>> When I use svn+ssh and file schemes, everything works without issue. I
>> believe this may be a bug with mod_dav_svn, if I get the time I will try
>> to compile from source and see if I can still recreate the issue.
>> 
>> Below is a copy of my configuration file for apache:
>> 
>> NameVirtualHost *
>> <VirtualHost *>
>>         ServerAdmin andrewl@hostingsupport.com
>> 
>>         SSLEngine On
>>         SSLCertificateFile /etc/apache2/ssl/host.cert
>>         SSLCertificateKeyFile /etc/apache2/ssl/host.key
>> 
>>         DocumentRoot /var/www/
>>         <Directory />
>>                 Options FollowSymLinks
>>                 AllowOverride None
>>         </Directory>
>> 
>>         <Directory /var/www/>
>>                 Options Indexes FollowSymLinks MultiViews
>>                 AllowOverride None
>>                 Order allow,deny
>>                 allow from all
>>         </Directory>
>> 
>>         <Location />
>>                 AuthzLDAPAuthoritative off
>>                 AuthBasicProvider ldap
>>                 AuthName "[REMOVED]"
>>                 AuthType Basic
>>                 AuthLDAPBindDN [REMOVED]
>>                 AuthLDAPBindPassword [REMOVED]
>>                 AuthLDAPURL [REMOVED]
>>                 require valid-user
>>         </Location>
>> 
>>         <Location /svn>
>>                 # Enable Subversion
>>                 DAV svn
>>                 # Directory containing all repository for this path
>>                 SVNParentPath /home/svn
>>                 SVNListParentPath On
>>         </Location>
>> 
>>         <LocationMatch /svn/*/>
>>                 AuthzSVNAccessFile /etc/svn/authz
>>         </LocationMatch>
>> 
>>         ErrorLog /var/log/apache2/error.log
>>         LogLevel warn
>>         CustomLog /var/log/apache2/access.log combined
>>         ServerSignature On
>> </VirtualHost>
>> 
>> Any help would be greatly appreciated, this problem is pretty annoying.
>> 
>> Thank you,
>> Andrew LeCody
>> 
>> 
>> Carlos Vieira wrote:
>>> Hello all
>>>
>>> Whenever I'm using mod_dav_svn on Apache2 to do any operaion that
>>> involves SVN COPY, it fails with 400 Bad request. The Apache logs
>>> won't show any error messages.
>>>
>>> It works fine with file:// URIs, though.
>>>
>>> Any hints?
>>>
>>> TIA,
>>> Vieira
>>>
>>> -- 
>>> Carlos Vieira
>>> +55(48)3025.4222
>>>
>>> .:: Boreste ::. Sistemas Embarcados -- Do Conceito à Inovação
>>> www.boreste.com
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/svn-copy-fails-with-400-Bad-request-tp19152450p21716180.html
Sent from the Subversion Users mailing list archive at Nabble.com.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].