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

Can *rename* domain and finish the wizard without changing anything

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.3.0.Beta3
    • 3.3.0.Beta1
    • openshift
    • None
    • Hide

      1.) ASSERT: make sure you have an account and a domain for it on OpenShift
      2.) ASSERT: make sure you have this domain listed in the OpenShift Express Console
      3.) EXEC: choose your account the in the OpenShift Express Console and pick Create or Edit Domain in the context menu

      4.) EXEC: dont change the domain, simply hit Finish

      Result:
      You dont see anything in the UI, no error is displayed, but in the log you'll spot the following:

      Could not create domain "1329997507457": A namespace with name '1329997507457' already exists
      !STACK 0
      com.openshift.express.client.OpenShiftEndpointException: Could not create domain 1329997507457
      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.createDomain(OpenShiftService.java:166)
      at com.openshift.express.internal.client.InternalUser.createDomain(InternalUser.java:100)
      at org.jboss.tools.openshift.express.internal.core.console.UserDelegate.createDomain(UserDelegate.java:125)
      at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainWizardPageModel.createDomain(NewDomainWizardPageModel.java:89)
      at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainDialog$1.run(NewDomainDialog.java:44)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      Caused by: com.openshift.express.internal.client.httpclient.BadRequestException:

      Unknown macro: {"messages"}

      at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:110)
      at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:76)
      at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:441)
      ... 7 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:1436)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
      at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:71)
      ... 8 more

      Expected:
      You cannot hit Finish as long as you did not change anything. If you change the domain to a new value and get back to the initial name, Finish should get disabled again.

      Show
      1.) ASSERT: make sure you have an account and a domain for it on OpenShift 2.) ASSERT: make sure you have this domain listed in the OpenShift Express Console 3.) EXEC: choose your account the in the OpenShift Express Console and pick Create or Edit Domain in the context menu 4.) EXEC: dont change the domain, simply hit Finish Result: You dont see anything in the UI, no error is displayed, but in the log you'll spot the following: Could not create domain "1329997507457": A namespace with name '1329997507457' already exists !STACK 0 com.openshift.express.client.OpenShiftEndpointException: Could not create domain 1329997507457 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.createDomain(OpenShiftService.java:166) at com.openshift.express.internal.client.InternalUser.createDomain(InternalUser.java:100) at org.jboss.tools.openshift.express.internal.core.console.UserDelegate.createDomain(UserDelegate.java:125) at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainWizardPageModel.createDomain(NewDomainWizardPageModel.java:89) at org.jboss.tools.openshift.express.internal.ui.wizard.NewDomainDialog$1.run(NewDomainDialog.java:44) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: com.openshift.express.internal.client.httpclient.BadRequestException: Unknown macro: {"messages"} at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:110) at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:76) at com.openshift.express.client.OpenShiftService.sendRequest(OpenShiftService.java:441) ... 7 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:1436) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at com.openshift.express.internal.client.httpclient.UrlConnectionHttpClient.post(UrlConnectionHttpClient.java:71) ... 8 more Expected: You cannot hit Finish as long as you did not change anything. If you change the domain to a new value and get back to the initial name, Finish should get disabled again.

          xcoulon@redhat.com Xavier Coulon
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Created:
            Updated:
            Resolved: