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

Exception when providing an empty 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 empty string no validation occurs but after clicking 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 
      	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: {"result":"Invalid namespace: ","messages":"","data":"","api":"1.1.2","debug":"","broker_c":["namespace","rhlogin","ssh","app_uuid","debug","alter","cartridge","cart_type","action","app_name","api"],"api_c":["placeholder"],"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: