#5748 - Add UI to apply hotfixes in Composr
| Identifier | #5748 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Add UI to apply hotfixes in Composr |
| Status | Completed |
| Tags |
Roadmap: v11 (custom) |
| Handling member | PDStig |
| Addon | General / Uncategorised |
| Description | In 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. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
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.