[jbosstools-issues] [JBoss JIRA] (JBIDE-21109) [application wizard] 2 connections from same server but for different users result in project mismatch

Jeff Cantrill (JIRA) issues at jboss.org
Wed Nov 18 11:45:00 EST 2015


     [ https://issues.jboss.org/browse/JBIDE-21109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Cantrill updated JBIDE-21109:
----------------------------------
              Project: Tools (JBoss Tools)  (was: OpenShift Java Client)
                  Key: JBIDE-21109  (was: OSJC-229)
          Component/s: openshift
                           (was: core)
    Affects Version/s:     (was: 3.0.0)


> [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
>
> 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