U4-4173 - Nuget Update-Package 7.0.2 -> 7.0.3 Web.config not backed up properly

Created by Peter Gregory 04 Feb 2014, 13:27:15 Updated by Sebastiaan Janssen 05 Jun 2015, 16:28:23

Upgrade notes say that Nuget will create a backup of the web.config so that you can be sure you are getting the right configuration and that you can merge back later and that it is safe to say Y to the overwrite.

See http://our.umbraco.org/documentation/installation/upgrading/general

However when I performed the Update process it created a backup but it seems to be a backup of the new file and not the old one? Custom configuration was missing from the .backup version. Thank goodness for GIT.

Im not sure if this is a one off but thought I should report and have it tested out by the HQ.

Comments

Wayne Godfrey 04 Feb 2014, 16:57:02

I noticed the same behavior. In addition, if you select do not overwrite, it overwrites the web.config but properly saves the old web.config as a backup. I observed this same behavior when moving from 7.0.1 to 7.0.2.


Sebastiaan Janssen 18 Mar 2014, 18:32:57

I've investigated this and it is no longer possible to run powershell scripts BEFORE a package gets updated. I've updated the documentation to reflect that. In the future we'll investigate config transforms instead of overwriting the file, but that is a big task.


Sebastiaan Janssen 18 Mar 2014, 21:39:00

I'm getting reports that it DOES work, against all odds. Will check it out one more time but I have little faith. :)


Sebastiaan Janssen 20 Mar 2014, 17:17:19

Right, I've updated all that and now it does a backup if you say NO to overwrite, it'll get put in App_Data\ConfigBackup\20140314-18160 (or whatever the date/time is today). I'll update the docs with the proper procedure tomorrow, readme.txt is already updated.


Sebastiaan Janssen 20 Mar 2014, 17:55:37

Docs updated now as well.


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.2, 7.0.3

Due in version: 7.1.0

Sprint:

Story Points:

Cycle: