Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

Closed Issue: Package information removed if update fails [1915]

$
0
0
Problem:
After updating a package (which was previously installed) that does not validate (so the update fails), the saved install-information in the dir ~/App_Data/Composite/Packages/<package-id>/ are no more available and a uninstall of the original package is no more possible.
The only way to recover from this state is to manually remove all installed files and entries in any XML config files (or in the SQL DB if used).

Reproduction:

- Install a C1 Package that validates correctly
- Validate that the package data is present in the directory ~/App_Data/Composite/Packages/<package-id>/
- Create a new package with a updated version number and any portion that does not validate @ install
- Install the new package version
- Validate that the package data is still present in the directory ~/App_Data/Composite/Packages/<package-id>/ (which is empty in my case)

Possible problem cause:
In the file Composite.Core.PackageSystem.PackageManagerInstallProcess.cs in the FinalizeProcess() method, the files are removed without a check if they're still needed.
Comments: Should be fixed in the latest build ( >= 4.2 beta 2) https://compositec1.codeplex.com/releases/view/120186

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>