List Info

Thread: lock request returns "405 Method Not Allowed"




lock request returns "405 Method Not Allowed"
user name
2007-02-22 02:54:23
[Posted yesterday on the USERS mailing list]
I've installed a subversion server from 1.4.3 sources on Fedora Core 3 (2.6.12-1.1381_FC3)
All svn commands are executed correctly except for LOCK.
Issuing a LOCK request on a source file always reports "405 Method not Allowed".
Inveswtigation with strace reveals that the .svn/log file on the working directory
does not exist (should it?). Creating it by hand does not resolve the issue.
The working directory has been created as a result of a CHECKOUT request.
All files in the repository have been chown to apache:apache after creating it with the SVNADMIN command.
 
The subversion.conf file as well as other information follows.
 
I do not know what else to look at for ideas.
Your help is very much appreciated.
 
Costa
 
 
--------- subversion.conf --------------------------------------
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module ;  modules/mod_authz_svn.so
LoadModule ssl_module  ;       modules/mod_ssl.so
<Location /svn>
   DAV svn
   SVNParentPath /var/lib/svn
 &nbsp; <LimitExcept GET PROPFIND OPTIONS REPORT COPY MOVE LOCK UNLOCK>
 &nbsp; &nbsp;  AuthType Basic
&nbsp; &nbsp; &nbsp; AuthName "Subversion Server"
&nbsp; &nbsp;   AuthUserFile /etc/httpd/svn-auth-file
 &nbsp;   ; Require valid-user
 &nbsp; </LimitExcept>
</Location>
================================================================
--------&nbsp; from: svn --version --------------------------------------------------------
svn, version 1.4.3 (r23084)
&nbsp;  compiled Feb 20 2007, 14:58:04
Copyright (C) 2000-2006 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' scheme
&nbsp; - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
&nbsp; - handles 'file' scheme
================================================================================
-------- from strace on: svn lock test.bas --message "Testing lock." -----------
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 3600000) = 1
read(3, "27311p", 5) &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; = 5
read(3, "3633124361303340260e2733251357206356217351"..., 368) = 368
write(3, "2531 p31>4V213315212232332332301305W214"..., 37) = 37
close(3) &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  = 0
write(2, "svn: Lock request failed: 405 Me"..., 69) = 69
lstat64("/root/test/.svn/log", 0xbfd7445c) = -1 ENOENT (No such file or directory)
unlink("/root/test/.svn/lock") = 0
exit_group(1)   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  = ?
================================================================================
&nbsp;


Everyone is raving about the all-new Yahoo! Mail beta.
Re: lock request returns "405 Method Not Allowed"
user name
2007-02-22 10:06:53
On 2/22/07, Backup e-mail <bckemailyahoo.com> wrote:

>    <LimitExcept GET PROPFIND OPTIONS REPORT COPY
MOVE LOCK UNLOCK>

Your error is right here. I have no idea what you're trying
to do with
this statement.  Typcially people only put the 4 read
operations in:
<LimitExcept GET PROPFIND OPTIONS REPORT>, which
translates to,
"require authentication for all requests except these
four read
operations".  What you've written is bizarre: 
"require authentication
for everything except this long list of read and write
operations".
Why did you do that?

In any case, LOCK is failing because you've explicitly said
that it
doesn't require authentication.  And that's impossible --
the
repository won't let you lock files without identifying
yourself.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesubversion.tigris.org
For additional commands, e-mail: dev-helpsubversion.tigris.org


Re: lock request returns "405 Method Not Allowed"
user name
2007-02-22 10:44:42
Ben Collins-Sussman schrieb:
> On 2/22/07, Backup e-mail <bckemailyahoo.com> wrote:
> 
>>    <LimitExcept GET PROPFIND OPTIONS REPORT COPY
MOVE LOCK UNLOCK>
> 
> Your error is right here. I have no idea what you're
trying to do with
> this statement.  Typcially people only put the 4 read
operations in:
> <LimitExcept GET PROPFIND OPTIONS REPORT>, which
translates to,
> "require authentication for all requests except
these four read
> operations".  What you've written is bizarre: 
"require authentication
> for everything except this long list of read and write
operations".
> Why did you do that?
> 
> In any case, LOCK is failing because you've explicitly
said that it
> doesn't require authentication.  And that's impossible
-- the
> repository won't let you lock files without identifying
yourself.
 > ...

One could argue that in this case a 403 (Forbidden) would
make more sense...

Best regards, Julian

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesubversion.tigris.org
For additional commands, e-mail: dev-helpsubversion.tigris.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )