? Pending

User tests: Successful: Unsuccessful:

avatar roland-d
roland-d
7 Sep 2019

Summary of Changes

If an extension is still in the system but the manifest file is gone a warning is thrown.

Testing Instructions

  1. Go to the filesystem folder /administrator/manifests/packages/
  2. Rename the file pkg_en-GB.xml to pkg_en-GB.xxml
  3. Login to Joomla backend
  4. Click on System
  5. Click on Global Configuration
  6. Click on the Server Tab
  7. Make sure Error Reporting is set to Development
  8. Save & Close the changes
  9. Click on System
  10. Click on Update -> Update Sites
  11. Notice the warning
  12. Apply the patch
  13. Reload the page
  14. Warning is gone

Expected result

No warning message

Actual result

image

Documentation Changes Required

None

avatar roland-d roland-d - open - 7 Sep 2019
avatar roland-d roland-d - change - 7 Sep 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Sep 2019
Category Administration com_installer
avatar zero-24
zero-24 - comment - 7 Sep 2019

I have just suggested an even shorter way ;) But works after the patch.

avatar roland-d roland-d - change - 8 Sep 2019
Labels Added: ?
avatar roland-d
roland-d - comment - 9 Sep 2019

@zero-24 All done.

avatar wilsonge
wilsonge - comment - 28 Sep 2019

Everything here treats the property that comes back as an object in \Joomla\Component\Installer\Administrator\Model\DatabaseModel. Something somewhere is going to blow up somewhere. Understand from @zero-24 's comment that this is possible anyhow in weird circumstances. But then we need to add sanity checks for this giving false in the DatabaseModel alongside this change

avatar roland-d
roland-d - comment - 29 Sep 2019

@wilsonge Should I make this a typehinted object? I mean we create our own object with all the properties specified, if there is no XML file, it would just contain empty values.

avatar vaibhavsTekdi vaibhavsTekdi - test_item - 19 Oct 2019 - Tested successfully
avatar vaibhavsTekdi
vaibhavsTekdi - comment - 19 Oct 2019

I have tested this item successfully on 4fae6d7


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

avatar pallaviu pallaviu - test_item - 19 Oct 2019 - Tested successfully
avatar pallaviu
pallaviu - comment - 19 Oct 2019

I have tested this item successfully on 4fae6d7


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

avatar wilsonge
wilsonge - comment - 19 Oct 2019

@roland-d Can do - to be honest just handling false being returned is also good enough - happy with either

avatar roland-d roland-d - change - 18 Apr 2020
Labels Added: ?
avatar roland-d
roland-d - comment - 18 Apr 2020

@wilsonge Updated the code to match the current codebase.

avatar wilsonge wilsonge - change - 23 Apr 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-04-23 22:13:26
Closed_By wilsonge
Labels Removed: ?
avatar wilsonge wilsonge - close - 23 Apr 2020
avatar wilsonge wilsonge - merge - 23 Apr 2020
avatar wilsonge
wilsonge - comment - 23 Apr 2020

LGTM! Thanks!

Add a Comment

Login with GitHub to post a comment