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

Re: [Subclipse-dev] Continuous Integration: Testing security by changing authentication credentials. Is it impossible?

From: Mark Phippard <markphip_at_gmail.com>
Date: Fri, 17 Jun 2011 08:35:16 -0400

2011/6/17 Javier Ruiz Jiménez <jruiz_at_tecsisa.com>:

> Problem:
>
> The user/password is cached in memory during the execution of the test and can't be changed.
>
> We need to be able to change credentials to test with different users.
>
> Something like:
>
> test(){
>  setUser(admin);
>  commitToFolder(AdminOnlyFolder)
>  setUser(reader);
>  commitToFolder(AdminOnlyFolder) -> expect failure.
>
> }
>
> Is it possible to change the user/password during execution?

The credentials are not cached by svnClientAdapter. I do not think
the Subversion API layer does either, but there might be cases where
it already has a connection open or something.

Couldn't you just change your code so that you are constructing a new
ISVNClientAdapter? That would give you a different JNI object for
each instance. If Subversion does have any kind of in memory cache,
that would deal with it as it would be per object.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2768450
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_subclipse.tigris.org].
Received on 2011-06-17 14:35:22 CEST

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

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