Wednesday, April 8, 2015

400 Bad Request when commit to SVN

Dear all,

Sometime you see me, I am "400 Bad Request" when you commit code to your svn host.

This error have 2 problems:
1. Maybe your svn version (version of application) is old. You need update and compare version your application and version of svn in your server.
2. Your administrator svn hosting was configured is wrong.

Please ref to this blog code in file "/etc/apache2/mods-enable/dav_svn.conf"

<Location /svn>
     DAV svn
     SVNParentPath /home/svn
     SVNListParentPath On
    # SVNPath /home/svn
     SVNAdvertiseV2Protocol off
     AuthType Basic
     AuthName "subversion repository"
     AuthUserFile /etc/subversion/passwd
     Require valid-user
        <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require valid-user
     </LimitExcept>

  </Location>

You need add more red line "SVNAdvertiseV2Protocal off" if you see it is not exist.
Then you restart apache "sudo service apache2 restart"

-- Thank you for viewing this post --

No comments:

Post a Comment