vijay wrote on Fri, Jun 03, 2011 at 20:22:50 +0530:
> Hi,
>
> whenever I run "svnrdump load" in *interactive mode*, it ends up
> with the following weird behaviour.
>
> <snip>
> vijayaguru_at_maverick:/tmp$ svnrdump load
> http://localhost:1234/svn/testrepo < aaaa.dump
> Authentication realm: <http://localhost:1234> subversion trunk repository
> Password for 'vijay':
>
> -----------------------------------------------------------------------
> ATTENTION! Your password for authentication realm:
>
> <http://localhost:1234> subversion trunk repository
>
> can only be stored to disk unencrypted! You are advised to configure
> your system so that Subversion can store passwords encrypted, if
> possible. See the documentation for details.
>
> You can avoid future appearances of this warning by setting the value
> of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
> '/home/vijayaguru/.subversion/servers'.
> -----------------------------------------------------------------------
> Store password unencrypted (yes/no)? Please type 'yes' or 'no':
> Please type 'yes' or 'no': Please type 'yes' or 'no': Please type
> 'yes' or 'no': Please type 'yes' or 'no': Please type 'yes' or 'no':
> Please type 'yes' or 'no': Please type 'yes' or 'no': Please type
> 'yes' or 'no': Please type 'yes' or 'no': Please type 'yes' or 'no':
> Please type 'yes' or 'no': Please type 'yes' or 'no': Please type
> 'yes' or 'no': Please type 'yes' or 'no': Please type 'yes' or 'no':
> Please type 'yes' or 'no': Please type 'yes' or 'no': Please type
> 'yes' or 'no': Please type 'yes' or 'no':
>
> ../subversion/libsvn_client/ra.c:356: (apr_err=70014)
> ../subversion/libsvn_client/ra.c:356: (apr_err=70014)
> ../subversion/libsvn_ra/ra_loader.c:496: (apr_err=70014)
> ../subversion/libsvn_ra/ra_loader.c:496: (apr_err=70014)
> svnrdump: E070014: Unable to connect to a repository at URL
> 'http://localhost:1234/svn/testrepo'
> ../subversion/libsvn_ra_serf/util.c:638: (apr_err=70014)
> ../subversion/libsvn_ra_serf/util.c:1466: (apr_err=70014)
> ../subversion/libsvn_ra_serf/util.c:1466: (apr_err=70014)
> ../subversion/libsvn_subr/auth.c:352: (apr_err=70014)
> ../subversion/libsvn_subr/simple_providers.c:394: (apr_err=70014)
> ../subversion/libsvn_subr/prompt.c:124: (apr_err=70014)
> svnrdump: E070014: Can't read stdin: End of file found
>
> </snip>
>
> I think it checks for "yes or no" in the stdin(the dump file). As it
> could not find one, it prompts the user repeatedly and fails the
> error.
>
> Is there any open issue for this?
>
Not for the svnrdump part of things.
We should be reading the response from the terminal rather than from
stdin. There were threads about this in the past (eg, one where Peter
named a Perl module that implements this behaviour in several platforms).
If there is no implementation in APR, we'll have to roll our own --- IMO
svnrdump(1) can't afford to use the getpass() handler for reading the
yes/no response (since that has echo disabled). :-(
> Thanks & Regards,
> Vijayaguru
Received on 2011-06-03 17:09:59 CEST