[Bug 520743] Re: svn sometimes ignoring svnserve.conf. Then SVN not asking for auth, connects as anonymous - giving misleading error: Authorization failed

Maarten Bezemer maarten.bezemer at gmail.com
Wed May 2 21:45:40 UTC 2012


Thank you for taking the time to report this bug and helping to make
Ubuntu better. We are sorry that we do not always have the capacity to
look at all reported bugs in a timely manner. There have been many
changes in Ubuntu since that time you reported the bug and your problem
may have been fixed with some of the updates. It would help us a lot if
you could test it on a currently supported Ubuntu version. When you test
it and it is still an issue, kindly upload the updated logs by running
apport-collect 520743 and any other logs that are relevant for this
particular issue.

** Changed in: subversion (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subversion in Ubuntu.
https://bugs.launchpad.net/bugs/520743

Title:
  svn sometimes ignoring svnserve.conf. Then SVN not asking for auth,
  connects as anonymous - giving misleading error: Authorization failed

Status in “subversion” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: subversion
  Similar but *different* bug is bug#519083 where svn+ssh always just ignores authz.
  Here svn's repo sometimes is enabled to be r/w even before editing svnserve.conf to allow any access,
  and sometimes it blocks any access until svnserve.conf is edited.  (SECURITY!)
  Also access related error messages are not very helpful.

  
  Svn client sometimes do not ask for passphrase and just connects always as anonymous to any newly create repo,
  but when I connect to an older repo (create months ago) all works!

  For svn:// method, for svnserve -d server.

  User A + old repo = works
  User A + new repo = as anonymous always (even after rm -rf ~/.subversion)
  User B + new repo = as anonymous always

  Ubuntu 9.10 amd64

  REPRODUCE - 5 minute test case - PLEASE CONFIRM MY BUG

  apt-get install subversion  # on Karmic 9.10 for example

  Start subversion local server (server method: svnserve deamon)
  Create a repo and try to import to it - FAIL?

  On the server / as root:
    (IF YOU RUN SVN APACHE server, then disable it first!)

  $ mkdir -p /srv/svn/repo/lc
  $ cd /srv/svn/repo/lc
  $ svnadmin create repofoo

  $ killall svnserve
  $ /usr/bin/svnserve  -d -r /srv/svn/repo/

  On the client / as user:
  $ mkdir testsvn
  $ cd testsvn/
  $ mkdir repofoo
  $ cd repofoo
  $ echo "some text" > testfile.txt
  $ svn import svn://localhost/lc/repofoo -m "importing"

  and....?

  ******* THE RESULT:  ****
  here you will get error:
  svn: Authorization failed
     (There is no question about authorization.)

  But checkout (by default allowed for anonymous) will work:
  $svn co svn://localhost/lc/repofoo
  Checked out revision 0.

  ***********************************************************************************
  If you get this above 2 messages, instead of prompt to enter password, then this is the bug described,
  it means svn connects always in anonymous mode, therefore blocked write but allowed read access.
  Please confirm my bug and select on top Affects me too!
  ***********************************************************************************

  Btw, I can not force authorization, look:

  root at jumpi(2010-02-12 00:41:21)/srv/svn/repo/lc$ vim repofoo/conf/passwd
  root at jumpi(2010-02-12 00:41:31)/srv/svn/repo/lc$ cat repofoo/conf/passwd
  [users]
  bob = secret

  user1 at jumpi(2010-02-12 00:41:04)~/testsvn/repofoo$ svn --username bob import svn://localhost/lc/repofoo -m "importing"
  svn: Authorization failed
  user1 at jumpi(2010-02-12 00:41:09)~/testsvn/repofoo$ svn --username bob --password secret import svn://localhost/lc/repofoo -m "importing"
  svn: Authorization failed

  Ubuntu 9.10 amd64
  ii  subversion                                1.6.5dfsg-1ubuntu1

  Btw, using an older already existing repo (created months ago) works
  100% fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subversion/+bug/520743/+subscriptions




More information about the foundations-bugs mailing list