Project: appceleratorstudio
Issue TISTUD-2004: Studio: Startup: Error "Bad Padding" and "Failed to load Jira user credentials"
At startup in Ubuntu 12.04, my user name and password are not retained for future logins. This results in the user being forced to log-in every time the program restarts. The following is found in the log file: {noformat} !ENTRY com.aptana.ide.security.linux 4 0 2012-07-24 14:07:46.459 !MESSAGE Bad padding !STACK 0 javax.crypto.BadPaddingException: Given final block not properly padded com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:811) com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676) com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:317) javax.crypto.Cipher.doFinal(Cipher.java:1813) com.aptana.ide.security.internal.linux.PasswordProvider.decrypt(PasswordProvider.java:251) com.aptana.ide.security.internal.linux.PasswordProvider.getPassword(PasswordProvider.java:136) com.aptana.ide.security.internal.linux.PasswordProvider.getPassword(PasswordProvider.java:67) org.eclipse.equinox.internal.security.storage.PasswordProviderModuleExt.getPassword(PasswordProviderModuleExt.java:35) org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:259) org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:224) org.eclipse.equinox.internal.security.storage.SecurePreferences.get(SecurePreferences.java:262) org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.get(SecurePreferencesWrapper.java:106) com.aptana.jira.core.JiraManager.loadCredentials(JiraManager.java:284) com.aptana.jira.core.JiraManager.(JiraManager.java:85) com.aptana.jira.core.JiraCorePlugin.getJiraManager(JiraCorePlugin.java:63) com.aptana.jira.ui.preferences.JiraPreferencePageProvider.getJiraManager(JiraPreferencePageProvider.java:218) com.aptana.jira.ui.preferences.JiraPreferencePageProvider.isLoggedOut(JiraPreferencePageProvider.java:223) com.aptana.jira.ui.preferences.JiraPreferencePageProvider.createContents(JiraPreferencePageProvider.java:83) com.aptana.jira.ui.internal.SubmitTicketDialog.createDialogArea(SubmitTicketDialog.java:174) org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:155) org.eclipse.jface.window.Window.create(Window.java:431) org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) org.eclipse.jface.window.Window.open(Window.java:790) com.aptana.jira.ui.handlers.SubmitTicketHandler.execute(SubmitTicketHandler.java:51) org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829) org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815) org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:616) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) org.eclipse.equinox.launcher.Main.main(Main.java:1386) !ENTRY com.aptana.jira.core 4 0 2012-07-24 14:07:46.460 !MESSAGE (Build 2.1.1.201207171343) [ERROR] Failed to load Jira user credentials !STACK 0 org.eclipse.equinox.security.storage.StorageException: No password provided. org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getModulePassword(SecurePreferencesRoot.java:304) org.eclipse.equinox.internal.security.storage.SecurePreferencesRoot.getPassword(SecurePreferencesRoot.java:224) org.eclipse.equinox.internal.security.storage.SecurePreferences.get(SecurePreferences.java:262) org.eclipse.equinox.internal.security.storage.SecurePreferencesWrapper.get(SecurePreferencesWrapper.java:106) com.aptana.jira.core.JiraManager.loadCredentials(JiraManager.java:284) com.aptana.jira.core.JiraManager.(JiraManager.java:85) com.aptana.jira.core.JiraCorePlugin.getJiraManager(JiraCorePlugin.java:63) com.aptana.jira.ui.preferences.JiraPreferencePageProvider.getJiraManager(JiraPreferencePageProvider.java:218) com.aptana.jira.ui.preferences.JiraPreferencePageProvider.isLoggedOut(JiraPreferencePageProvider.java:223) com.aptana.jira.ui.preferences.JiraPreferencePageProvider.createContents(JiraPreferencePageProvider.java:83) com.aptana.jira.ui.internal.SubmitTicketDialog.createDialogArea(SubmitTicketDialog.java:174) org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:155) org.eclipse.jface.window.Window.create(Window.java:431) org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) org.eclipse.jface.window.Window.open(Window.java:790) com.aptana.jira.ui.handlers.SubmitTicketHandler.execute(SubmitTicketHandler.java:51) org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829) org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815) org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:616) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) org.eclipse.equinox.launcher.Main.main(Main.java:1386) {noformat} Steps to reproduce: 1. Open Titanium Studio. 2. Log in to Titanium Studio. 3. Close (but do not log out of) Titanium Studio 4. Open Titanium Studio. This is a regression issue.
Story points: 8