[jbosstools-issues] [JBoss JIRA] (JBIDE-23903) Server adapter: waits endlessly if you dont unfold the project in the OpenShift explorer

Andre Dietisheim (JIRA) issues at jboss.org
Mon May 15 04:55:00 EDT 2017


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

Andre Dietisheim commented on JBIDE-23903:
------------------------------------------

[~dbocharov] found the fix: It was introduced with [commit f0ee0e06cbbd316c081248383f593dbc6f8835b1|https://github.com/jbosstools/jbosstools-openshift/commit/f0ee0e06cbbd316c081248383f593dbc6f8835b1] for JBIDE-23490 

{code:title=OpenShiftServerUtils}
	public static IResource getResource(IServerAttributes server, Connection connection) {
		// TODO: implement override project settings with server settings
		String uniqueId = getAttribute(ATTR_SERVICE, server);
		if (StringUtils.isEmpty(uniqueId)) {
			return null;
		}
		if( connection == null ) {
			return null;
		}
		String projectName = OpenShiftResourceUniqueId.getProjectName(uniqueId);
		String kind = OpenShiftResourceUniqueId.getKind(uniqueId);
		List<IResource> resources = connection.getResources(kind, projectName);
		IResource resource = OpenShiftResourceUniqueId.getByUniqueId(uniqueId, resources);
                if (resource != null) {
                    WatchManager.getInstance().startWatch(resource.getProject(), connection);
                }
                return resource;    
	}
{code}

> Server adapter: waits endlessly if you dont unfold the project in the OpenShift explorer
> ----------------------------------------------------------------------------------------
>
>                 Key: JBIDE-23903
>                 URL: https://issues.jboss.org/browse/JBIDE-23903
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.3.Final
>            Reporter: Andre Dietisheim
>            Assignee: Dmitrii Bocharov
>              Labels: openshift_v3, respin-a, server_adapter
>             Fix For: 4.4.3.Final
>
>         Attachments: failed-to-detect-pod.png, image-2017-02-15-17-38-29-607.png
>
>




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list