[jbosstools-issues] [JBoss JIRA] (JBIDE-21109) [application wizard] 2 connections from same server but for different users result in project mismatch
Fred Bricon (JIRA)
issues at jboss.org
Wed Nov 18 11:46:00 EST 2015
[ https://issues.jboss.org/browse/JBIDE-21109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fred Bricon updated JBIDE-21109:
--------------------------------
Fix Version/s: 4.3.1.Beta1
4.4.0.Alpha1
> [application wizard] 2 connections from same server but for different users result in project mismatch
> ------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-21109
> URL: https://issues.jboss.org/browse/JBIDE-21109
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Reporter: 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