[
https://issues.jboss.org/browse/JBIDE-21424?page=com.atlassian.jira.plugi...
]
Fred Bricon commented on JBIDE-21424:
-------------------------------------
The problem is in UrlUtils.getHost(String url) :
{code:java}
public static String getHost(String url) {
if (isEmpty(url)) {
return url;
}
int beginIndex = getHostIndex(url);
if (beginIndex == -1) {
beginIndex = 0;
}
int endIndex = url.length() - 1;
if (url.endsWith("/")) {
endIndex -= 1;
}
return url.substring(beginIndex, endIndex);
}
{code}
It should be _int endIndex = url.length()_
Server adapter editor: IP in host name of a server adapter overview
has cut off digit
-------------------------------------------------------------------------------------
Key: JBIDE-21424
URL:
https://issues.jboss.org/browse/JBIDE-21424
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.3.1.Beta2
Reporter: Marián Labuda
Assignee: Fred Bricon
Labels: openshift_v3, server_adapter_editor
Fix For: 4.3.1.Beta2
In a server adapter overview there is a text widget for a host name, where IP address of
a service is filled in. Problem is that the IP address is missing last digit. See
following screenshot.
First one contains IP address listed in service details:
!service_details.png!
and second one show host name (IP) in a server adapter overview:
!service_adapter_overview.png!
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)