Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Blocker
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0
-
Fix Version/s: 4.2.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
CiviCRM sites Manage Extensions page will only display the FIRST available extension when retrieving from civicrm.org/extdir.
The problem is in CRM_Core_Extensions::grabRemoteKeyList() function
On line 715 - we are splitting the retrieved HTML on line feed. However the repositoryUrl output (from http://civicrm.org/extdir/ver=4.2|cms=Drupal/ (for example)) uses HTML list elements - so only a single line is present. Hence, $lines array as one item and only first extension is parsed into $exts.
We can explode on '<li>' and unset first item in resulting array. But then the preg_match on line 718 fails and I couldn't quite figure out the fix for that
Attachments
Issue Links
- supplements
-
CRM-10535 CiviCRM should download extension XML from civicrm.org Drupal site
- Done/Fixed