On Mon, Oct 07, 2002 at 10:32:34PM +0200, Branko ??ibej wrote:
> Karl Fogel wrote:
>
> >Branko ??ibej <brane@xbc.nu> writes:
> >
> >
> >>I think the first order of business is to make a clean separation
> >>between the libraries and the client program. IIRC, right now the
> >>prompt is coming from the RA lib. Instead, the lib should simply
> >>return an error if authentication fails; then the client can decide
> >>about prompting or not.
> >>
> >>
> >
> >I thought it is ultimately the client deciding whether or not to
> >prompt? The RA layer just calls a client-supplied routine to get auth
> >info. What that routine does is up to it.
> >
> >
> >
> >>The next problem is what to do with the failure in the client. IMHO,
> >>if any auth tokens were passed in explicitly on the command line, it
> >>should not prompt -- the user had her shot, and missed.
> >>
> >>
> >
> >Yes, I'm fine with that, but we still have to handle the circumstance
> >where subversion might prompt when the tokens were *not* passed on the
> >command line.
> >
>
> Right. I'm beginning to wonder whether we should prompt at all, and the
> answer is far from simple.
I don't see the problem with either of:
1) Never prompt at all
2) Prompt unless --username --password are specified (even if empty), and
encouraging people writing scripts to always pass them.
I personally like (2), since we also have the EDITOR business, what if a
script commits, has editor set, and doesn't specify -m or -F?
>
> Now, none of this is a problem ina purely interactive environment. The
> problems we're discussing only show up when the "svn" command is being
> scripted. A simple way out is to simply say that any script that's
> complex enough to have to bother with authentication should use the swig
> wrappers instead. :-)
>
> Anyway, I'm glad we're having this discussion, because it shows that
> even features that are simple to implement can involve complex design
> decisions.
>
> --
> Brane ??ibej <brane_at_xbc.nu> http://www.xbc.nu/brane/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson http://www.pilch-bisson.net
"Historically speaking, the presences of wheels in Unix
has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- application/pgp-signature attachment: stored
Received on Mon Oct 7 23:08:58 2002