[jbosstools-issues] [JBoss JIRA] (JBIDE-10862) express console multiuser weirdness

Andre Dietisheim (JIRA) jira-events at lists.jboss.org
Mon Feb 13 16:32:01 EST 2012


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

Andre Dietisheim commented on JBIDE-10862:
------------------------------------------

Looking into the current code I saw the following that is IMHO not consistent (I obviously did get that the console was designed to allow several users):

* the console actions set the user to the wizard

CreateApplicationAction#run
{code}
public void run() { 
	if (selection != null && selection instanceof ITreeSelection ) {
		Object sel = ((ITreeSelection)selection).getFirstElement();
		if( sel instanceof IUser) {
			OpenShiftExpressApplicationWizard wizard = new OpenShiftExpressApplicationWizard();
			wizard.setInitialUser((IUser)sel);
			new WizardDialog(new Shell(), wizard).open();
		}
	}
}
{code}

* the wizard then gets to the OpenShiftUIActivator and gets the user:

ApplicationConfigurationWizardPageModel#getUser:

{code}
public IUser getUser() {
	// return wizardModel.getUser();
	return OpenShiftUIActivator.getDefault().getUser();
}
{code}

                
> express console multiuser weirdness
> -----------------------------------
>
>                 Key: JBIDE-10862
>                 URL: https://issues.jboss.org/browse/JBIDE-10862
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>            Reporter: Max Rydahl Andersen
>            Assignee: Xavier Coulon
>             Fix For: 3.3.0.Beta1
>
>
> I somehow managed to get two accounts listed in express console - seem to be one for each attempt on the first page of OpenShift wizard.
> That shouldn't happen :) 
> And with two entries clicking "Connect to OpenShift" seem to clear it all out and just leave one.
> Should have an Edit Connection on the useraccount instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list