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

Issues with an authz-protected repository

From: Eli Barzilay <eli_at_barzilay.org>
Date: Mon, 9 Feb 2009 22:34:25 -0500

[Apologies if this is a known issue, I've tried too look around for
this for some time now and didn't see anything.]

We have a private user repository, protected by an authz configuration
file. Some people have encountered a problem where things die with an
obscure

  svn: Server sent unexpected return value (403 Forbidden) in response
  to OPTIONS request for 'http://svn.plt-scheme.org/usr'

Now, as far as I can tell, this is correct for our setup, since /usr
is the repository root which is not supposed to be readable, and
/usr/foo would be the directory for `foo'. We've managed to find a
way to reproduce this which looks like the following:

  svn co http://svn.plt-scheme.org/usr/foo A
  svn co http://svn.plt-scheme.org/usr/foo B
  cd A
  touch blah1
  svn add blah1
  svn ci -m ''
  svn mv blah1 blah2
  svn ci -m ''
  cd ../B
  svn up
  <<403-error>>

After some tweaking of my ~/.subversion/servers, I've managed to get
some verbose output -- and it looks like the problem happens when it
tries to get the new "blah2" file -- the output has

  <D:checked-in><D:href>/usr/!svn/ver/20822/foo/blah2</D:href></D:checked-in>

and then it immediately proceeds to perform the offending OPTIONS:

  HTTP session to http://svn.plt-scheme.org:80 begins.
  HTTP session to http://svn.plt-scheme.org:80 begins.
  Doing DNS lookup on svn.plt-scheme.org...
  Running pre_send hooks
  compress: Initialization.
  Sending request headers:
  OPTIONS /usr HTTP/1.1
  Host: svn.plt-scheme.org
  User-Agent: SVN/1.5.5 (r34862) neon/0.25.5
  ...
  [status-line] < HTTP/1.1 401 Authorization Required
  ...
  OPTIONS /usr HTTP/1.1
  Host: svn.plt-scheme.org
  User-Agent: SVN/1.5.5 (r34862) neon/0.25.5
  ...
  Authorization: xxxxxxxxxxxxxx...
  [status-line] < HTTP/1.1 403 Forbidden

This is with both client and server at 1.5.5.

Is this a bug?

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1131969
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-10 07:07:05 CET

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.