? Pending

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
30 Apr 2017

While creating a list of the installed extensions, AdminModelSysInfo::getExtensions() accesses properties whose existence is not guaranteed, and depends on third party extensions xml manifests files.

PHP Notice: Undefined property: stdClass::$authorUrl in [...]/administrator/components/com_admin/models/sysinfo.php on line 496

Summary of Changes

Replaced
"array based access" + "validation of data parsed"
with
"usage of JRegistry".

Testing Instructions

  1. Enable error reporting.
  2. Install an extension whose manifest xml file lacks one of the following fields: author, version, creationDate or authorUrl.
  3. Alternatively, remove one of the fields listed above by editing the column manifest_cache field in #__extensions table. Ensure to respect the json syntax in this case.
  4. Once in "System Information" menu, press "Download as text" or "Download as json" button.

Actual result

The PHP warning appears at the beginning of the export plain text file, and in the error log of the web server.

avatar demis-palma demis-palma - open - 30 Apr 2017
avatar demis-palma demis-palma - change - 30 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Apr 2017
Category Administration com_admin
avatar brianteeman
brianteeman - comment - 19 May 2017

I have tested this item successfully on b7d5ba4

Confirmed the issue and confirmed that this pr resolves the issue


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

avatar brianteeman brianteeman - test_item - 19 May 2017 - Tested successfully
avatar Quy
Quy - comment - 19 May 2017

I have tested this item successfully on b7d5ba4


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

avatar Quy Quy - test_item - 19 May 2017 - Tested successfully
avatar demis-palma
demis-palma - comment - 19 May 2017

Does anyone know the reason why AppVeyor fails here?

avatar brianteeman
brianteeman - comment - 19 May 2017

@demis-palma see #15706 for the explanation - basically dont worry

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 May 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 May 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 22 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-22 19:16:36
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 22 May 2017
avatar rdeutz rdeutz - merge - 22 May 2017

Add a Comment

Login with GitHub to post a comment