You are the man Mark! I returned true for all promptUser() methods and it
works.
I now understands svn better... Thanks a lot.
Shawn
On 27/03/07, Mark Phippard <markphip@gmail.com> wrote:
>
> On 3/27/07, Shawn Jin <shawnemails@gmail.com> wrote:
> >
> > Mark,
> >
> > I implemented ISVNPromptUserPassword, in which getUsername() and
> > getPassword() are returning a String "abc". Passed the class to
> > ISVNClientAdapter#addPasswordCallback method... No magic. My initial thought
> > from your reply is these two methods will provide authenticaion info when
> > the client is chanllenged, am I wrong?
>
>
> You need to implement something for all the methods. Most likely the
> adapter is going to call the method to prompt for the username and
> password. You can fake out this method by just returning the right value
> that means the user did it properly. I think this means returning true.
> The client will then typically follow this up with calls to getUsername and
> getPassword to retrieve the values the user might have entered. But if you
> returned false from that earlier method, then it will assume the user
> clicked Cancel in a dialog and thus will never call the other methods.
>
> I am not sure which methods SVNKit is calling in the case of file://
> access. You just need to make sure you are returning true for all the
> prompt methods and the implemented a value in the getUsername method.
>
>
> --
> Thanks
>
> Mark Phippard
> http://markphip.blogspot.com/
>
Received on Tue Mar 27 15:48:40 2007