Opened 3 years ago

Closed 3 years ago

#2159 closed enhancement (fixed)

Update: Backup already existing customized files

Reported by: kramer Owned by: kramer
Priority: normal Milestone: Contrexx 3.2
Component: Update Version: 3.1.1
Severity: normal Keywords:
Cc:

Description

The Update System of Contrexx does detect files that have been modified and puts them in the folder /customizing as a backup.

This process shall be improved. Extend the function so that it does add the version of the currently installed Contrexx to the file name of the files to be backed-up. I.e. if file /core/Model/Db.class.php is modified, a backup of it will be placed under /customizing/core/Model/Db.class.php.

Change the backup path to contain the Contrexx version: /customizing/core/Model.class.php_3.0.4 (assuming installed Contrexx version is 3.0.4)

Additionally extend the function copyCxFilesToRoot() to also check if there is already a file by the same name/path present in /customizing directory. If so, rename it by also adding the version number as describe above. Perform this operation before checking if the file to be copied has been modified in original place. No files in /customizing-directory must be overwritten. Instead of overwriting a file in /customizing-directory add a suffix to the filename (see function backupModifiedFile() for the syntax of the suffix to use, as this has already been implemented in current code).

Change History (1)

comment:1 Changed 3 years ago by kramer

  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.