Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349111

Summary: Make SVN: 'Save Authorization Info' operation optional
Product: [Technology] Subversive Reporter: Eike Stepper <stepper>
Component: CoreAssignee: Igor Burilo <igor.burilo>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 351382    

Description Eike Stepper CLA 2011-06-11 04:28:22 EDT
My build logs always contain 2 errors like this:

     [java] ERROR: SVN: 'Save Authorization Info' operation finished with error
     [java]   ERROR: SVN: 'Save Authorization Info' operation finished with error: No secure storage modules found.
     [java] org.eclipse.equinox.security.storage.StorageException: No secure storage modules found.
     [java] 	at org.eclipse.equinox.internal.security.storage.PasswordProviderSelector.findStorageModule(PasswordProviderSelector.java:190)
     [java] 	at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:231)
     [java] 	at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:224)
     [java] 	at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.java:224)
     [java] 	at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferencesWrapper.java:110)
     [java] 	at org.eclipse.team.svn.core.svnstorage.AbstractSVNStorage.saveAuthInfo(AbstractSVNStorage.java:557)
     [java] 	at org.eclipse.team.svn.core.svnstorage.AbstractSVNStorage.saveLocations(AbstractSVNStorage.java:515)
     [java] 	at org.eclipse.team.svn.core.svnstorage.AbstractSVNStorage.saveConfiguration(AbstractSVNStorage.java:298)
     [java] 	at org.eclipse.buckminster.subversive.internal.SubversiveSession.createRoots(SubversiveSession.java:355)
     [java] 	at org.eclipse.buckminster.subversion.GenericSession.createCommonRoots(GenericSession.java:431)
     [java] 	at org.eclipse.buckminster.subversion.GenericReaderType.shareProject(GenericReaderType.java:142)
     [java] 	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.createProjectBinding(WorkspaceMaterializer.java:497)
     [java] 	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.installLocal(WorkspaceMaterializer.java:188)
     [java] 	at org.eclipse.buckminster.core.materializer.WorkspaceMaterializer.performInstallAction(WorkspaceMaterializer.java:209)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:164)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.delegateAndInstallRecursive(AbstractMaterializer.java:189)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.installRecursive(AbstractMaterializer.java:156)
     [java] 	at org.eclipse.buckminster.core.materializer.AbstractMaterializer.performInstallActions(AbstractMaterializer.java:68)
     [java] 	at org.eclipse.buckminster.core.materializer.InstallerJob.runInWorkspace(InstallerJob.java:53)
     [java] 	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
     [java] 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Having errors in a build log is really annoying.
Please make the storage of SVN Authorization Info optional/configurable.
Comment 1 Thomas Hallgren CLA 2011-06-11 05:37:36 EDT
Moving this to Subversive since there's not much we can do to fix this.
Comment 2 Alexander Gurov CLA 2011-07-06 12:21:58 EDT
Next development build will provide new initialization method signature, that could be used to disable storing of an authentication information.

HashMap preferences = new HashMap();
preferences.put(ISVNStorage.PREF_STATE_INFO_LOCATION, this.getStateLocation());

preferences.put(ISVNStorage.PREF_NO_STORED_AUTHENTICATION, Boolean.TRUE); // disable authentication information storing

SVNFileStorage.instance().initialize(preferences);
SVNRemoteStorage.instance().initialize(preferences);
Comment 3 Eike Stepper CLA 2011-07-06 14:29:01 EDT
Thank you Alexander!

Thomas, is this something yu can use in Bucky to suppress the error messages from the build logs? Would you like me to file a new bugzilla again?
Comment 4 Thomas Hallgren CLA 2011-07-06 15:14:06 EDT
(In reply to comment #3)
> Thomas, is this something yu can use in Bucky to suppress the error messages
> from the build logs?

Yes, I think so.

> Would you like me to file a new bugzilla again?

Yes please.
Comment 5 Alexander Gurov CLA 2011-07-10 03:50:53 EDT
If there will be some issues as to how it works, please notify me, I'll fix it right away.
Comment 6 Alexander Gurov CLA 2011-08-05 11:09:29 EDT
*** Bug 304931 has been marked as a duplicate of this bug. ***