Community
Participate
Working Groups
Found by code review: AbstractConnectorServiceManager#getConnectorService(IHost, Class) line 92 if (!(host instanceof DummyHost)) should be if (host instanceof DummyHost) or otherwise I really don't understand what's going on here. My understanding is, that all the hosts of type "DummyHost" and with the same name share the same connectorService, even if it's different object instances. Or what's the meaning of that code? Could it eventually even be removed?
Created attachment 77988 [details] fix for incorrect logic Yes, this logic is wrong. I've attached the obvious patch.
The dummy host is used when an official host does not yet exist (i.e. in the new connection wizard). The only way to remove this would be if we created the action host prior to completion in the new connection wizard, although I'm not sure if that would be desirable.
Patch looks good. When I understand comment #2 right, the dummy host would never be connected because it's only used while the host description is not yet complete. That's good because it means the change in logic is not a risk. I see no need for getting rid of the DummyHost completely right now.
Martin, yes that is correct. I've committed the patch now.