No Code Attached Yet J4 Issue
avatar avjoomla
avjoomla
16 Dec 2017

Steps to reproduce the issue

Install a file extension that includes a script file with in manifest xml. Scriptfile should have a postflight, preflight or unistall method with some custom code. Unistall the extension.
I necessary, I could create a very small test installation zip for you.

Expected result

preflight, uninstall and postflight methods in manifest script (script.php) are executed

Actual result

Non of the methods is executed but script file is deleted properly

System information (as much as possible)

Joomla! 4.0.0-dev Development [ Amani ] 19-November-2017 16:34 GMT
Local XAMPP Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/7.1.7 on Windows 7

Additional comments

This ussue only happens on uninstall. Install works fine.
I think basically the problem is, that the getElement() function in the FileAdapter class tries to locate the script file with
$manifestPath = \JPath::clean($this->parent->getPath('manifest'));
but this path is not set at any time for the FileAdapter
On other adpaters (like PackageAdapter, PluginAdapter this issue does not happen, too).

avatar avjoomla avjoomla - open - 16 Dec 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Dec 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Dec 2017
Title
Joomla! 4 uninstalling a file extension does not trigger manifest script
[4.0] uninstalling a file extension does not trigger manifest script
avatar joomla-cms-bot joomla-cms-bot - edited - 16 Dec 2017
avatar brianteeman
brianteeman - comment - 19 Dec 2017

Just to confirm that this works on J3 ??

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Dec 2017
Status New Information Required
avatar avjoomla
avjoomla - comment - 20 Dec 2017

Yes, tested with Joomla! 3.8.3

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Dec 2017
Status Information Required Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Dec 2017
Build Joomla! 4 4.0-dev
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Apr 2019

@avjoomla can you please test if this Issue is resolved?

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2019
Status Discussion Information Required
avatar avjoomla
avjoomla - comment - 29 Jul 2019

Hi,
no it is not.
Regards,
Aicha

avatar jwaisner jwaisner - change - 11 Mar 2020
Status Information Required New
avatar Hackwar Hackwar - change - 8 Nov 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-11-08 21:45:05
Closed_By Hackwar
Labels Added: No Code Attached Yet
Removed: ?
avatar Hackwar Hackwar - close - 8 Nov 2022
avatar Hackwar
Hackwar - comment - 8 Nov 2022

#39180 should fix this. Please test that PR. Closing this issue.

Add a Comment

Login with GitHub to post a comment