Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19999

v3 Logging into a server that doesn't support OAuth doesn't provide feedback/error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 4.3.0.Beta1
    • 4.3.0.Alpha2
    • openshift
    • None
    • Hide

      Setup a v3 server with basic auth, then add a new v3 connection to it. Select OAuth and then click retrieve. There is progress and then returns to the dialog. No message.

      Show
      Setup a v3 server with basic auth, then add a new v3 connection to it. Select OAuth and then click retrieve. There is progress and then returns to the dialog. No message.

      Would be "nice" if client could discover what the server supports. If use selects the wrong thing, it would be good to present with appropriate error/message.

      eclipse.buildId=4.5.0.I20150528-0700
      java.version=1.8.0_40
      java.vendor=Oracle Corporation
      BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
      Framework arguments: -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -keyring /Users/sspeiche/.eclipse_keyring -showlocation
      Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -product org.eclipse.epp.package.jee.product -data file:/Users/sspeiche/Documents/workspace/mars/ -product org.eclipse.epp.package.jee.product -keyring /Users/sspeiche/.eclipse_keyring -showlocation

      org.jboss.tools.openshift.ui
      Error
      Tue Jun 09 10:22:09 EDT 2015
      Could not display malformed url "".

      java.net.MalformedURLException: no protocol:
      at java.net.URL.<init>(URL.java:586)
      at java.net.URL.<init>(URL.java:483)
      at java.net.URL.<init>(URL.java:432)
      at org.jboss.tools.foundation.ui.util.BrowserUtility.openUrl(BrowserUtility.java:60)
      at org.jboss.tools.foundation.ui.util.BrowserUtility.checkedCreateExternalBrowser(BrowserUtility.java:51)
      at org.jboss.tools.openshift.internal.ui.wizard.connection.OAuthDetailView$AuthLinkHandler$1$1.run(OAuthDetailView.java:224)
      at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4024)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3700)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:172)
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:387)
      at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1002)
      at org.jboss.tools.common.ui.WizardUtils.runInWizard(WizardUtils.java:129)
      at org.jboss.tools.common.ui.WizardUtils.runInWizard(WizardUtils.java:93)
      at org.jboss.tools.common.ui.WizardUtils.runInWizard(WizardUtils.java:71)
      at org.jboss.tools.openshift.internal.ui.wizard.connection.OAuthDetailView$AuthLinkHandler.widgetSelected(OAuthDetailView.java:232)
      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:4230)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
      at org.eclipse.swt.widgets.Widget.sendSelectionEvent(Widget.java:1564)
      at org.eclipse.swt.widgets.Link.textView_clickOnLink_atIndex(Link.java:117)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:6010)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
      at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1121)
      at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1113)
      at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2569)
      at org.eclipse.swt.widgets.Display.windowProc(Display.java:5692)
      at org.eclipse.swt.internal.cocoa.OS.objc_msgSend_bool(Native Method)
      at org.eclipse.swt.internal.cocoa.NSRunLoop.runMode(NSRunLoop.java:42)
      at org.eclipse.swt.widgets.Display.sleep(Display.java:4740)
      at org.eclipse.jface.window.Window.runEventLoop(Window.java:828)
      at org.eclipse.jface.window.Window.open(Window.java:803)
      at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:244)
      at org.jboss.tools.openshift.internal.common.ui.command.NewConnectionHandler.execute(NewConnectionHandler.java:29)
      at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
      at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      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:497)
      at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:252)
      at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:234)
      at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
      at org.eclipse.core.commands.Command.executeWithChecks(Command.java:493)
      at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:486)
      at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:799)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:675)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:659)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:592)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
      at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
      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:497)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

            adietish@redhat.com André Dietisheim
            sspeiche@redhat.com Steve Speicher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: