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

Exception when providing long domain name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.Beta1
    • openshift
    • None

      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.

      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
      

            xcoulon@redhat.com Xavier Coulon
            ljelinko@redhat.com Lucia Jelinkova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: