SVN: 405 Method not allowed

As I was committing a bunch of code today, I came across the following error in SVN (command line):

svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to MKCOL req
uest for ‘/svn-repo/the-repo/!svn/wrk/96db5daf-a23d-334c-b96e-870d397df28e/module-path/trun
k/web/module-web/src/main/webapp/assets’

After a quick google search, I learned the error is an HTTP error, and that it’s fairly generic with very little technical fixes documented. So I was on the hunt! Fortunately, this one didn’t take too long to solve. The problem ended up being that the folder it was erroring on (module-path/trun
k/web/module-web/src/main/webapp/assets) already existed on the server. Apparently, when I had re-arranged some things (that folder specifically), SVN got confused (probably by Eclipse) and thought it was a new folder that needed to be added to SVN. Not so! The resolution may vary for you, but my solution was to delete my local working copy and co that folder again. I didn’t have any actual changes to the files in that folder, so it was a simple fix for me. You may have to backup your changes, checkout a fresh working copy, and apply your changes again to get SVN straight.

SVN version: 1.6.6
Eclipse version: 3.4.2 (Ganymede)

SVN: 405 Method not allowed
Tagged on:             

Leave a Reply