[jbosstools-issues] [JBoss JIRA] (JBIDE-21831) Change host to localhost when cdk is selected in new server dialog

Rob Stryker (JIRA) issues at jboss.org
Tue Mar 15 16:25:00 EDT 2016


     [ https://issues.jboss.org/browse/JBIDE-21831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Stryker resolved JBIDE-21831.
---------------------------------
    Resolution: Done


Fixed with 1 line commit:

{code}
@@ -42,6 +42,7 @@ public class CDKServer extends ServerDelegate {
        }
        
        public void setDefaults(IProgressMonitor monitor) {
+               getServerWorkingCopy().setHost("localhost"); //$NON-NLS-1$
                setAttribute(PROP_PASS_CREDENTIALS, true);
        }
{code}

Tested manually, works as expected. 

> Change host to localhost when cdk is selected in new server dialog
> ------------------------------------------------------------------
>
>                 Key: JBIDE-21831
>                 URL: https://issues.jboss.org/browse/JBIDE-21831
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdk
>    Affects Versions: 4.3.1.CR1
>            Reporter: Martin Malina
>            Assignee: Rob Stryker
>            Priority: Minor
>             Fix For: 4.4.0.Alpha1
>
>         Attachments: new-cdk-server.png
>
>
> When you open the new server dialog, select OpenShift 2, it will set host to openshift.redhat.com. When you then select cdk, it will complain that it only works on localhost. So the suggestion is to make it work the same way OpenShift adapters work and ensure that host is always changed to localhost when you select the cdk adapter.
> This was spotted and brought up by [~mlabuda].
> For reference, this is the JIRA where similar thing was discussed for OpenShift: JBIDE-20114



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list