sysapps / runtime

Runtime and Security Model for Hosted Web Applications and Packaged Applications
6 stars 13 forks source link

Clarify update aspects of lifecycle #80

Open marcoscaceres opened 11 years ago

marcoscaceres commented 11 years ago

Questions from mailing list:

Application update/uninstall behavior when it is running If an application is in running state, and at the moment RuntimeInstaller try to update/uninstall it, what should be the expected behavior?

And:

About application update, is it better to support auto-update through adding a ‘update_url’ in application manifest file?

jmajnert commented 11 years ago

For the first issue, I think that if the ApplicationManagement.applyUpdate() is called on a running or paused app, then the app should be terminated and the update should be applied. I'm not sure if we should allow the application to execute its termination callbacks, but I'm leaning towards allowing it.

As for the second issue, auto-update is already possible by checking if the original manifest was changed? IMHO adding update_url to the manifest adds unnecessary complexity.