Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10631

Failure getting more than the first available remote extension from civicrm.org/extdir

    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

            Activity

              People

              • Assignee:
                dgg David Greenberg
                Reporter:
                dgg David Greenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: