[
https://issues.jboss.org/browse/JBIDE-11335?page=com.atlassian.jira.plugi...
]
Andre Dietisheim commented on JBIDE-11335:
------------------------------------------
The reason actually is that you were using capital letters which are not allowed. The
client library is not allowing capital letters where as the validation in the UI is
missing this.
InvalidNameOpenShiftException and NotFoundOpenShiftException while
trying to add cartridge "jenkins-client-1.4" to New OpenShift Express
Application
----------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-11335
URL:
https://issues.jboss.org/browse/JBIDE-11335
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 3.3.0.Beta1
Reporter: Daniel Azarov
Assignee: Andre Dietisheim
Fix For: 3.3.0.Beta3
Attachments: NewJenkinsApplication.png, NewOpenShiftExpressApplication.png,
ProblemOccurred.png
Test case:
1. Open wizard New OpenShift Express Application
!NewOpenShiftExpressApplication.png!
2. Click to checkbox for cartridge "jenkins-client-1.4"
FAIL:
{code}
com.openshift.express.client.NotFoundOpenShiftException: Could not find any OpenShift
Express resource at "https://openshift.redhat.com/broker/userinfo"
at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:448)
at com.openshift.express.client.OpenShiftService.getUserInfo(OpenShiftService.java:128)
at
com.openshift.express.internal.client.InternalUser.getUserInfo(InternalUser.java:267)
at
com.openshift.express.internal.client.InternalUser.getApplications(InternalUser.java:203)
at
com.openshift.express.internal.client.InternalUser.getApplicationsByCartridge(InternalUser.java:230)
at
com.openshift.express.internal.client.InternalUser.hasApplication(InternalUser.java:239)
at
org.jboss.tools.openshift.express.internal.core.console.UserDelegate.hasApplication(UserDelegate.java:206)
at
org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPageModel.hasApplication(ApplicationConfigurationWizardPageModel.java:271)
at
org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPage.addJenkinsCartridge(ApplicationConfigurationWizardPage.java:491)
at
org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPage.access$3(ApplicationConfigurationWizardPage.java:489)
at
org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPage$5.checkStateChanged(ApplicationConfigurationWizardPage.java:470)
at org.eclipse.jface.viewers.CheckboxTableViewer$1.run(CheckboxTableViewer.java:212)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.CheckboxTableViewer.fireCheckStateChanged(CheckboxTableViewer.java:210)
at
org.eclipse.jface.viewers.CheckboxTableViewer.handleSelect(CheckboxTableViewer.java:306)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.jboss.tools.central.editors.GettingStartedPage$9.linkActivated(GettingStartedPage.java:619)
at
org.eclipse.ui.forms.widgets.AbstractHyperlink.handleActivate(AbstractHyperlink.java:233)
at org.eclipse.ui.forms.widgets.ImageHyperlink.handleActivate(ImageHyperlink.java:199)
at
org.eclipse.ui.forms.widgets.AbstractHyperlink.handleMouseUp(AbstractHyperlink.java:327)
at org.eclipse.ui.forms.widgets.AbstractHyperlink.access$2(AbstractHyperlink.java:311)
at
org.eclipse.ui.forms.widgets.AbstractHyperlink$4.handleEvent(AbstractHyperlink.java:125)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: com.openshift.express.internal.client.httpclient.NotFoundException: Could not
find resource
https://openshift.redhat.com/broker/userinfo
at
com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:73)
at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:441)
... 57 more
Caused by: java.io.FileNotFoundException:
https://openshift.redhat.com/broker/userinfo
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at
com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:71)
... 58 more
{code}
!NewJenkinsApplication.png!
3. Type "testJenkins" then press "Ok"
FAIL:
!ProblemOccurred.png!
{code}
com.openshift.express.client.InvalidNameOpenShiftException: Application name
"testJenkins" contains uppercase letters (only lowercase allowed)
at
com.openshift.express.client.OpenShiftService.validateApplicationName(OpenShiftService.java:215)
at
com.openshift.express.client.OpenShiftService.createApplication(OpenShiftService.java:200)
at
com.openshift.express.client.OpenShiftService.createApplication(OpenShiftService.java:193)
at
com.openshift.express.internal.client.InternalUser.createApplication(InternalUser.java:197)
at
org.jboss.tools.openshift.express.internal.core.console.UserDelegate.createApplication(UserDelegate.java:117)
at
org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizardModel.createApplication(OpenShiftExpressApplicationWizardModel.java:352)
at
org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPageModel.createJenkinsApplication(ApplicationConfigurationWizardPageModel.java:294)
at
org.jboss.tools.openshift.express.internal.ui.wizard.ApplicationConfigurationWizardPage$6.run(ApplicationConfigurationWizardPage.java:515)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira