[jbosstools-issues] [JBoss JIRA] (JBIDE-21995) Hostname is set to localhost when prompt for route is checked

Viacheslav Kabanovich (JIRA) issues at jboss.org
Wed Mar 30 09:57:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-21995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183935#comment-13183935 ] 

Viacheslav Kabanovich commented on JBIDE-21995:
-----------------------------------------------

This method is called by only 
{code}
updateServer(String serverName, String host, String connectionUrl, String deployProjectName, String serviceId, String sourcePath, String podPath, String routeURL, IServerWorkingCopy server)
{code}
and there host is set by 
{code}
    server.setHost(host);
{code}
so due to the interface method we do not have to use directly PROP_HOSTNAME.
We can add before setting the host
{code}
if(host == null) {
    host = ""; //or "Prompt for route when multiple routes available to show in browser"
}
{code}


> Hostname is set to localhost when prompt for route is checked
> -------------------------------------------------------------
>
>                 Key: JBIDE-21995
>                 URL: https://issues.jboss.org/browse/JBIDE-21995
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.1.CR1
>            Reporter: Marián Labuda
>              Labels: openshift_v3, server_adapter
>             Fix For: 4.3.1.CR1
>
>
> Hostname in Server Editor for an OpenShift 3 application is set to localhost if checkbox "Prompt for route when multiple routes available to show in browser" is checked. 



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



More information about the jbosstools-issues mailing list