[jbosstools-issues] [JBoss JIRA] (JBIDE-21140) [application wizard] 2 connections from same server but for different users result in project mismatch
Marián Labuda (JIRA)
issues at jboss.org
Thu Nov 26 07:43:00 EST 2015
Marián Labuda created JBIDE-21140:
-------------------------------------
Summary: [application wizard] 2 connections from same server but for different users result in project mismatch
Key: JBIDE-21140
URL: https://issues.jboss.org/browse/JBIDE-21140
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: openshift
Reporter: Fred Bricon
Assignee: Fred Bricon
Fix For: 4.3.1.Beta1, 4.4.0.Alpha1
In JBT, connecting 2 users on the same server, results in wrong projects being shown for the 2nd connection (in the new application wizard).
This is caused by calling Connection.ownResource(project), having
{code}
public boolean ownsResource(IResource resource) {
if (resource == null) {
return false;
}
IClient client = resource.accept(new CapabilityVisitor<IClientCapability, IClient>() {
@Override
public IClient visit(IClientCapability capability) {
return capability.getClient();
}
}, null);
return ObjectUtils.equals(this.client, client);
}
{code}
The problem is the clients are equals for both connections. A check for token equality should be performed to distinguish them
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list