| Summary: | Unzip and Cleanupzip are not robust | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Henrik Lindberg <henrik.lindberg> |
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | simon_kaegi |
| Version: | 3.5 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Henrik Lindberg
re: There is no backup of overwritten files. Is this intentional? Intentional is not the right word here but indeed it is a known problem. We're vulnerable in the case where the original artifact is not around and perhaps a few other subtle cases. What you propose sounds good. The possible loss of files on use of Unzip/Cleanupzip actions has been corrected in the patch attached to bug 262333. The issue with original zip file having to be available for undo of Cleanupzip is not in the above mentioned patch,. This issue can be closed as a duplicate of bug 262333 if the remaining issue is deemed to be "by design". The remaining issue is that if an uninstall fails, and the original zip file is not around in the artifact repository, undo of the cleanupzip will fail. Is this a possible scenario at all? An artifact repository is modified (the zip file is no longer in the repo), and the changes are mirrored to the user. The user wants to uninstall the thing that was removed. The uninstall fails for some reason. The user would like to get back to exactly the same state as before the uninstall. Is there some mechanism that safeguards the zip file as being "in use" so that it does not disappear? I think we don't support this in general. If you try to undo an uninstall, and there is no longer any repository containing the metadata and/or artifacts that were uninstalled, the user is likely out of luck (unless by luck the local garbage collector has not yet run). The same limitation exists for revert. As the remaining robustness issue is "by design" - I am marking this as a duplicate of Bug 262333 since it contains the fix regarding backup. *** This bug has been marked as a duplicate of bug 262333 *** |