File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes How to adjust credentials used for Subversion in Eclipse Galileo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to adjust credentials used for Subversion in Eclipse Galileo" Watch "How to adjust credentials used for Subversion in Eclipse Galileo" New topic
Author

How to adjust credentials used for Subversion in Eclipse Galileo

Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
We're using Eclipse Galileo and Subversion on PCs running Windows 7 (Professional?).

When a PC is given to a different user, they log into the machine using their own credentials, but when they use Eclipse to commit changes to the source repository, it is done as the machine's original owner. In other words, Subversion shows the file was committed by the machine's original owner, rather than the user that actually performed the operation.

I've found the following directory on the machine:

C:\Documents and Settings\<user name>\Application Data\Subversion\auth\

which contains what looks like authentication information. However, if we remove the files, the commit is still recorded as being performed by the machine's original owner. This information must be maintained some place we haven't been able to find.

Is there a way to get Eclipse/Subversion to forget it's previous credentials and allow the user to enter new ones?

Thanks,
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

I believe that the subclipse plugin to Eclipse stores the Subversion account information in the workspace, in some subdirectory under the .metadata directory (though I am having a hard time finding it). Are both users using the same workspace? If so, they should not be - each should have his/her own workspace.


JBoss In Action
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Actually, the computer was a hand-me-down from the original user (who is no longer with the company) to a new user (who has just joined). I would guess they are just using the same workspace - although I found it surprising that the Eclipse workspace was not user-specific.

I'll have the user create a new workspace and see what happens.

Thanks for the pointer!
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Hmmm, I looked all through the files under the .metadata directory of the workspace, and nothing contains the user's credentials. I've asked the user to create a new workspace anyway and we'll see what happens. Doesn't appear to be anything I can just delete though.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

In the SVN repo browser can't you just enter new credentials?
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
I've been all over that tab, and can't see any way to view/edit the user credentials. Is it there and I'm just not looking in the correct place?

Thanks,
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I don't have an Eclipse set up for SVN where I am now--but I know that I've been able to right-click the repo and change my credentials, because they frequently changed the password out from under me. I might be able to check in an hour or two.
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Thanks, David. I would really appreciate that. I've done all the normal things (right clicking on things, looking at properties, etc.), but can't find any way to change these.

Thanks,
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Well, for those following along, creating a new workspace allowed the user to enter Subversion credentials, and now commit operations are properly attributed.

I would still like to know if there's a way to achieve this without having to create a new workspace, but at least we have a rather heavy-handed way to accomplish what we want.

Thanks,
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
David (or anyone for that matter): Were you able to see where you can change the SNV credentials from within Eclipse?
It sure would be nice if we didn't have to re-create the workspace.

Thanks,
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 643
Well, we found a way to work around this. It still seems strange that there appears to be no way to change the credentials used by Eclipse to work with Subversion.

If you open the Subversion Repository Exploring perspective you can remove the existing entry and add a new one. When you add a new one, you are prompted for your credentials.

One caveat though: You must check out your project from the new repository - so you have to close/delete your current project(s), and check them out fresh once you have the new SVN repository configured. I couldn't find any way to get an existing project to "link up" with a new SVN repository entry.

Anyway, I hope this helps someone.

Jose Daquila
Greenhorn

Joined: Oct 01, 2010
Posts: 3
You have to remove o rename the file: ".keyring" located in "/eclipse/configuration/org.eclipse.core.runtime"
After that, when you syncronize in eclipse, you need to enter your pass.
Good luck!
Hamed Asghari
Greenhorn

Joined: Nov 21, 2010
Posts: 1
In the SVN Repository Exploring perspective, right click on the desired repository location and select "Location Properties...". You will be able to change user credentials there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to adjust credentials used for Subversion in Eclipse Galileo