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

Re: svn doesn't cope well with read-only auth cache

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 21 May 2014 01:41:22 +0100

Johan Corveleyn <jcorvel_at_gmail.com> writes:

> Not much interest it seems. Filed an issue, so this doesn't get forgotten:
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=4504
>
> I don't have the time nor expertise right now to work on this, but if
> someone else wants to have a go ... by all means.

Similar problem on Unix but without the 10 second delays. The delay
after the "Store password unencrypted" prompt is the WIN32 retry loop
invoked by svn_io_file_open() called from svn_config_write_auth_data().
What causes the delay before the "unencrypted" prompt?

A couple of things:

 - svn_config_write_auth_data() is writing directly to the target file
   rather than writing to a temporary file and renaming. Using the
   rename mechanism would probably solve this problem is some cases
   since our rename changes the permissions, however it would still fail
   if the entire auth dir were readonly.

 - svn_auth__simple_creds_cache_set() calls svn_config_write_auth_data()
   and it is clearing the write error rather than returning it and there
   is a comment questioning this behaviour:

      if (err)
        *saved = FALSE;

      /* ### return error? */
      svn_error_clear(err);

      return SVN_NO_ERROR;

   If we were to return the error it would generally cause the whole
   operation to abort even though correct credentials had been supplied.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-05-21 02:41:55 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.