? ? ? Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
20 Nov 2020

Pull Request for Issue #31308 .

Summary of Changes

Adds a check if the path is empty.

Testing Instructions

See issue #31308 .

To reproduce, update e.g. a 3.9.22 to 3.9.23 RC.

To test the fix of this PR, update e.g. a 3.9.22 to the update package built by Drone for this PR.

Verify that the update has run completely by checking the Joomla Update log file administrator/logs/joomla_update.php. The following logs should be there:

2020-11-20T18:39:21+00:00       INFO 192.168.98.1       update  Update started by user Super User (342). Old version is 3.9.22.
2020-11-20T18:39:21+00:00       INFO 192.168.98.1       update  Downloading update file from https://ci.joomla.org/artifacts/joomla/joomla-cms/staging/31442/downloads/37665/Joomla_3.9.23-rc+pr.31442-Release_Candidate-Update_Package.zip.
2020-11-20T18:39:22+00:00       INFO 192.168.98.1       update  File Joomla_3.9.23-rc+pr.31442-Release_Candidate-Update_Package.zip downloaded.
2020-11-20T18:39:22+00:00       INFO 192.168.98.1       update  Starting installation of new version.
2020-11-20T18:39:25+00:00       INFO 192.168.98.1       update  Finalising installation.
2020-11-20T18:39:25+00:00       INFO 192.168.98.1       update  Deleting removed files and folders.
2020-11-20T18:39:26+00:00       INFO 192.168.98.1       update  Cleaning up after installation.
2020-11-20T18:39:26+00:00       INFO 192.168.98.1       update  Update to version 3.9.23-rc+pr.31442 is complete.

Actual result BEFORE applying this Pull Request

See issue #31308 .

Expected result AFTER applying this Pull Request

No PHP error like described in issue #31308 .

Documentation Changes Required

None.

avatar richard67 richard67 - open - 20 Nov 2020
avatar richard67 richard67 - change - 20 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2020
Category Administration com_joomlaupdate
avatar richard67 richard67 - change - 20 Nov 2020
The description was changed
avatar richard67 richard67 - edited - 20 Nov 2020
avatar richard67 richard67 - change - 20 Nov 2020
The description was changed
avatar richard67 richard67 - edited - 20 Nov 2020
avatar richard67 richard67 - change - 20 Nov 2020
Title
Fix empty path in com_joomlaupdate restore.php
Fix "Uncaught ValueError: Path cannot be empty ..." in com_joomlaupdate restore.php
avatar richard67 richard67 - edited - 20 Nov 2020
avatar alikon alikon - test_item - 21 Nov 2020 - Tested successfully
avatar alikon
alikon - comment - 21 Nov 2020

I have tested this item successfully on d158e60

php 8 rc4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31442.

avatar laoneo laoneo - test_item - 21 Nov 2020 - Tested successfully
avatar laoneo
laoneo - comment - 21 Nov 2020

I have tested this item successfully on d158e60


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31442.

avatar richard67 richard67 - change - 21 Nov 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 21 Nov 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31442.

avatar richard67 richard67 - change - 21 Nov 2020
Labels Added: ? ? ?
avatar HLeithner HLeithner - change - 21 Nov 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-11-21 14:52:12
Closed_By HLeithner
Labels
avatar HLeithner HLeithner - close - 21 Nov 2020
avatar HLeithner HLeithner - merge - 21 Nov 2020
avatar HLeithner
HLeithner - comment - 21 Nov 2020

Thanks

avatar PhilETaylor
PhilETaylor - comment - 21 Nov 2020

@HLeithner As requested, I just applied (manually, by copy and paste) this patch to a 3.9.0-beta install on PHP 7.3.0beta3 (Just a docker container I had lying around) and then upgraded to Joomla 3.9.22 (in one step) and no issues to report.

However, I do note that the current Akeeba Kickstart 7.0.2 doesn't include this change, so tagging @nikosdion incase either he disagrees with the change for reasons only his experience will be able to shed light on, or, to aid Nik in adding this change to his kickstart.php code too.

avatar HLeithner
HLeithner - comment - 21 Nov 2020

thanks phil

Add a Comment

Login with GitHub to post a comment