]
Xavier Coulon commented on JBIDE-11114:
---------------------------------------
opened JBIDE-11139 to track the missing error message issue
Exception when providing long domain name
-----------------------------------------
Key: JBIDE-11114
URL:
https://issues.jboss.org/browse/JBIDE-11114
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 3.3.0.Beta1
Reporter: Lucia Jelinkova
Assignee: Xavier Coulon
Fix For: 3.3.0.Beta1
Attachments: JBIDE-11114.patch
When I try to rename a domain on OpenShift Express Console View to a long string (e. g.
12345678901234567) and click Finish button an exception is thrown and logged into Error
log. No error message is displayed to the user.
{code}
com.openshift.express.client.OpenShiftEndpointException: Could not change domain to
12345678901234567
at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:454)
at
com.openshift.express.client.OpenShiftService.requestDomainAction(OpenShiftService.java:182)
at
com.openshift.express.client.OpenShiftService.changeDomain(OpenShiftService.java:175)
at com.openshift.express.internal.client.Domain.setNamespace(Domain.java:52)
at
org.jboss.tools.openshift.express.internal.ui.wizard.EditDomainWizardPageModel.renameDomain(EditDomainWizardPageModel.java:53)
at
org.jboss.tools.openshift.express.internal.ui.wizard.EditDomainDialog$1.run(EditDomainDialog.java:50)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.openshift.express.internal.client.httpclient.BadRequestException:
{"api_c":["placeholder"],"debug":"","broker_c":["namespace","rhlogin","ssh","app_uuid","debug","alter","cartridge","cart_type","action","app_name","api"],"messages":"","result":"The
namespace you entered (12345678901234567) is not available for use. Please choose another
one.","data":"","api":"1.1.2","exit_code":106}
at
com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.createHttpClientException(UrlConnectionHttpClient.java:108)
at
com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:74)
at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:441)
... 6 more
Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL:
https://openshift.redhat.com/broker/domain
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at
com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:69)
... 7 more
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: