cloudfoundry-attic / eclipse-integration-cloudfoundry

Cloud Foundry Integration for Eclipse
Apache License 2.0
41 stars 47 forks source link

Fix a bug of updating URI when adding a route to an existing app #25

Closed liuhewei closed 9 years ago

liuhewei commented 10 years ago

The steps below can re-produce the problem:

cfdreddbot commented 10 years ago

Hey liuhewei!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA.

nierajsingh commented 10 years ago

Thanks for submitting this fix. We have a related bug open in our internal tracker, and although the one-line fix above addresses the issue, it still does not address an underlying problem with updating mapped application URLs after an application has been deployed. For this reason, we'll postpone merging this PR, as fixing the underlying issue will also fix the issue in this PR. We will have a fix in for version 1.7.3.

We'll leave this open for now until we have pushed our fix, and we'll update this PR when the fix is available.

nierajsingh commented 10 years ago

Hi,

We have an alternate solution to the updated CloudApplication with new URLs not mapped correctly to the CloudFoundryApplicationModule after changes have been made to the mapped URLs.

We have a fix available here:

https://github.com/nierajsingh/eclipse-integration-cloudfoundry/tree/81819722_change_URL_failed_app

It contains various other code clean-up, but essentially, what the fix does is that it triggers a module refresh after mapped URLs are changed. That way, if you change the mapped URL of a failed app, when you click "Start" to re-publish, the mapping to the most recent CloudApplication with the updated URLs should already have been done.

It also fixes another related bug, where changes to mapped URLs are not immediately saved to manifest.yml if a user selects to save to the manifest file.

If you can please verify if the fix in the branch above solves your issue, we'll merge it into master.

Thank you.

nierajsingh commented 9 years ago

Hi,

We have merged a PR with a related fix into master:

https://github.com/cloudfoundry/eclipse-integration-cloudfoundry/pull/28

It should fix the issue that you encountered. Please let us know if the problem is now fixed, and we'll close this PR. Thanks.

liuhewei commented 9 years ago

@nierajsingh The patch fixes the issue and works well in our environment. Thanks.

nierajsingh commented 9 years ago

Closing this PR as it has been fixed in CF 1.7.3 release.