[
https://issues.jboss.org/browse/JBIDE-23210?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-23210:
-----------------------------------------------
That is what happens here:
NewApplicationWizard.init(workbench, selection) does two calls
(1) setConnection(connection);
(2) model.setProject(resource.getProject());
While the first call is performed, on event from the change of connection, method
DeployImageWizardModel.initModel(connection, project, loadResources) is called with
project = null, because the call (2) is not yet done.
Method initModel starts job "Loading projects..." which is to set projects and
select default project.
Now, we have the race of job and main thread. Main usually wins, makes its call (2), after
which job sets default project to DeployImageWizardModel which is not synchronized with
project instance in NewApplicationWizardModel.
So, user sees correctly selected project in combo, taken from NewApplicationWizardModel,
while DeployImageWizardModel inconspicuously holds wrong default project.
Application wizard: builder image application are created all the
time for first project
----------------------------------------------------------------------------------------
Key: JBIDE-23210
URL:
https://issues.jboss.org/browse/JBIDE-23210
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.4.1.Final
Environment: # openshift version
openshift v3.2.1.15
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5
Reporter: Peng Li
Labels: application_wizard, openshift_v3
Attachments: Screenshot from 2016-09-22 15-58-02.png, Screenshot from 2016-09-22
16-00-12.png
Creation of an application based on builder image ignore preselected project and is
created on first project all the time. This is happening only for builder images. Template
based application are not affected by this issue.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)