Bug 485228 - Attempting to publish (then cancelling) a Web project with the same name as a running Bluemix app will cause the running app to be destroyed
Summary: Attempting to publish (then cancelling) a Web project with the same name as a...
Status: RESOLVED FIXED
Alias: None
Product: CFT
Classification: ECD
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: 1.0 M3   Edit
Assignee: Jonathan West CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2016-01-05 12:54 EST by Jonathan West CLA
Modified: 2016-02-11 17:07 EST (History)
1 user (show)

See Also:


Attachments
Patch to CloudFoundryServerBehaviour and DeleteModulesOperation (2.44 KB, patch)
2016-01-12 15:24 EST, Jonathan West CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan West CLA 2016-01-05 12:54:06 EST
If you attempt to publish a Web project with the same name as a running bluemix app, but then cancel on the first page of the deployment info wizard, it will cause the running app to be destroyed (eg 'cf delete'-d). This is because the deletion logic does not distinguish between published and unpublished Eclipse projects.

To reproduce:
1. First, make sure you have an application running on Cloud Foundry named jgwlowercase (note the case). 
2. Have the Cloud Foundry server defined in the Servers view in Eclipse CF. You should see the existing 'jgwlowercase' application in the Servers view.
3. Now, in Eclipe CF, create a new web project called JGWLOWERCASE (note the case.. you can probably see where this is going...).
4. In the Servers view, add the JGWLOWERCASE project to your existing CF server using right-click on Server > Add/Remove.
- This will bring up the application deployment wizard. Do not click anything in the wizard, just hit Cancel.

Now, refresh the Servers view. Notice that the 'jgwlowercase' application that was previously running on CF has now destroyed (eg 'cf delete'-ed), even though all we did was Add/Remove then cancel.
Comment 1 Jonathan West CLA 2016-01-12 15:24:34 EST
Created attachment 259137 [details]
Patch to CloudFoundryServerBehaviour and DeleteModulesOperation