View Issue Details

IDProjectCategoryView StatusLast Update
0005748Composr[All Projects] General / Uncategorisedpublic2024-07-22 21:05
ReporterPatrick SchmalstigAssigned ToPatrick Schmalstig 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0005748: Add UI to apply hotfixes in Composr
DescriptionIn upgrader.php, add an option to upload and apply a hotfix TAR.

I'm finding for example in my Control Panel Plesk, it is very difficult to quickly apply a hotfix. It does not like the TAR files generated by Composr. When using ZIP files, instead of extracting into root, it creates a new directory with the same name as the ZIP and dumps the files there. And when trying to move the files out, it will not allow that since the directories already exist.

Some people might face similar challenges on other CPs, so we should have a convention available to apply hotfixes in Composr.
TagsRoadmap: v11
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2024-05-06 23:20

administrator   ~0008753

Last edited: 2024-05-06 23:21

View 3 revisions

Here's what I did...

Instead of adding a new option in the upgrader for applying a hotfix, I simply modified the upgrader so that it can accept and handle hotfix TARs as if you were doing a manual upgrade.

So you can run upgrader.php, and on step 5, use the hotfix TAR as the file (URL now supports relative paths if you start it with a /). Just like with an upgrade, the upgrader will extract files as necessary skipping over files belonging to addons you do not have installed or files which you manually edited more recently than what is in the hotfix.

This will be available starting alpha3.

Chris Graham

2024-07-22 21:05

administrator   ~0008872

This is probably okay, but I am wary with the idea of making hot fix installation easy. Users need to have a level of expertise so we know they know what they are doing. Otherwise we are giving people enough rope to hang themselves.

Issue History

Date Modified Username Field Change
2024-05-01 02:50 Patrick Schmalstig New Issue
2024-05-01 02:50 Patrick Schmalstig Status non-assigned => assigned
2024-05-01 02:50 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-05-01 02:50 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-05-06 23:20 Patrick Schmalstig Status assigned => closed
2024-05-06 23:20 Patrick Schmalstig Resolution open => fixed
2024-05-06 23:20 Patrick Schmalstig Note Added: 0008753
2024-05-06 23:20 Patrick Schmalstig Note Edited: 0008753 View Revisions
2024-05-06 23:20 Patrick Schmalstig Status closed => resolved
2024-05-06 23:21 Patrick Schmalstig Note Edited: 0008753 View Revisions
2024-07-22 21:05 Chris Graham Note Added: 0008872