Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-1936

Solr views expects Solr fields to be available during setup. That does not happen always

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.x-1.5, 7.x-1.6, 7.x-1.7, 7.x-1.8, 7.x-1.9, 7.x-1.10
    • Fix Version/s: 7.x-1.11
    • Component/s: Solr Views
    • Labels:
      None

      Description

      During the 7.x-1.9 RC VM creation, I saw some warnings on every cache clear and module install
      ==> default: Invalid argument supplied for foreach() [warning]
      ==> default: islandora_solr_views.views.inc:94
      https://github.com/Islandora/islandora_solr_views/blob/7.x/islandora_solr_views.views.inc#L94

      That lines assumes that we already have some fiels in Solr while enabling and that those are accesible via Luke. Probably solr fields is undefined or not an array by the time this is installed. This would probably not affect a normal installation where people already have a working Solr config/search, but assuming blindly that this should be an array we can iterate over is also wrong.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dpinokrayon Diego Pino Navarro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 2 days
                2d
                Remaining:
                Remaining Estimate - 2 days
                2d
                Logged:
                Time Spent - Not Specified
                Not Specified