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

Bug 457569

Summary: Secure store access - denial on Mac OS X keychain leads to UE
Product: [Eclipse Project] Equinox Reporter: Markus Tiede <markus.tiede>
Component: ComponentsAssignee: equinox.components-inbox <equinox.components-inbox>
Status: CLOSED WONTFIX QA Contact: Oliver Goetz <Oliver.Goetz>
Severity: normal    
Priority: P3 CC: alexandra.schladebeck, torkildr
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: Mac OS X   
Whiteboard: stalebug

Description Markus Tiede CLA 2015-01-15 08:17:00 EST
The denial on Mac OS X keychain access leads to UE for the implicit secure store lookup e.g. when using / storing credentials for task repositories:

3004: Unexpected error occurred.
  java.lang.SecurityException: Could not obtain password.  Result: -25293
  	at org.eclipse.equinox.internal.security.osx.OSXProvider.getPassword(Native Method)
  	at org.eclipse.equinox.internal.security.osx.OSXProvider.getPassword(OSXProvider.java:45)
  	at org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(PasswordProviderModuleExt.java:35)
  	at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:259)
  	at org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:224)
  	at org.eclipse.equinox.internal.security.storage.SecurePreferences.put(SecurePreferences.java:224)
  	at org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.put(SecurePreferencesWrapper.java:110)
  	at org.eclipse.mylyn.internal.commons.repositories.core.SecureCredentialsStore.testAvailability(SecureCredentialsStore.java:181)
  	at org.eclipse.mylyn.internal.commons.repositories.ui.RepositoryUiUtil.testCredentialsStore(RepositoryUiUtil.java:35)
  	at org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.createRepositoryCredentialsSection(AbstractRepositorySettingsPage.java:669)
  	at org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.createSettingControls(AbstractRepositorySettingsPage.java:467)
  	at org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage.createControl(AbstractRepositorySettingsPage.java:331)
  	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1276)
  	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1268)
  	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1257)
  	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
  	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1254)
  	at org.eclipse.mylyn.internal.tasks.ui.wizards.SelectRepositoryConnectorPage$2.open(SelectRepositoryConnectorPage.java:113)
  	at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:853)
  	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
  	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
  	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
  	at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:850)
  	at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1142)
  	at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1249)
  	at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
  	at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
  	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
  	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
  	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
  	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
  	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
  	at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
  	at org.eclipse.jface.window.Window.open(Window.java:808)
  	at org.eclipse.mylyn.internal.tasks.ui.actions.AddRepositoryAction.showWizard(AddRepositoryAction.java:88)
  	at org.eclipse.mylyn.internal.tasks.ui.actions.AddRepositoryAction.showWizard(AddRepositoryAction.java:78)
  	at org.eclipse.mylyn.internal.tasks.ui.actions.AddRepositoryAction.run(AddRepositoryAction.java:74)
  	at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
  	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
  	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
  	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
  	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
  	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
  	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
  	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
  	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showMenu(StackRenderer.java:1302)
  	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$6.widgetSelected(StackRenderer.java:681)
  	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
  	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
  	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
  	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
  	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
  	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
  	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  	at org.eclipse.jubula.app.Launcher.start(Launcher.java:227)
  	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.lang.reflect.Method.invoke(Method.java:483)
  	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Comment 1 Alexandra Schladebeck CLA 2015-01-16 03:43:49 EST
You've put this in as "normal" - can you specify why you don't think it's a blocker?
Comment 2 Markus Tiede CLA 2015-01-16 04:13:39 EST
Following the rule that each UE is a blocker - then this is a blocker.

This UE is also likely to occur on other OS native implementation secure store provider access denial.

But from a normal end-user perspective it's not really blocking me from using the ITE in any way.
Comment 3 Torkild Resheim CLA 2016-11-26 12:22:08 EST
I've been seeing this issue lately on Eclipse IDE for Committers 4.6.1.M20160907-1200. It's making the secure storage useless and I have to type in all passwords once every session. I've taken the liberty to change the product to Equinox, as I think it belongs there.
Comment 4 Eclipse Genie CLA 2019-10-25 00:04:33 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.