Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27460

Solr index not updated when moving content with children

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.4.10
    • Fix Version/s: Customer request, 5.4.11-rc, 5.4.11
    • Labels:
      None
    • Environment:

      ezsystems/ezpublish-kernel v5.4.10
      ezsystems/ezpublish-legacy v5.4.10
      ezsystems/ezplatform-solr-search-engine v1.0.8
      netgen/ezplatformsearch 1.1.3
      solr 4.10.4

      Description

      Steps to reproduce:

      1. Make sure solr service is running;
      2. Login to admin interface;
      3. Create the following content structure:

      Home
      	Tests				(folder, location_id: 122)
      	TestMoveParent			(folder, location_id: 123)
      		TestMoveChild		(article, location_id: 124)
      

      4. Go into the Sorl admin interface and search for "TestMove*". You will find "TestMoveParent" and "TestMoveChild". Please note the main_location_path_id:

      name_s: "TestMoveParent",
      main_location_path_id: "/1/2/123/",
      ...
      name_s: "TestMoveChild",
      main_location_path_id: "/1/2/123/124/",
      

      5. Go back to the eZ Publish admin interface and move the "TestMoveParent" into another location. In this test, it was moved under "Home/Tests". The content structure is now this:

      Home
      	Tests					(folder, location_id: 122)
      		TestMoveParent			(folder, location_id: 123)
      			TestMoveChild		(article, location_id: 124)
      

      6. Go back to the Sorl admin interface and search for "TestMove*" again. You will see that the main_location_path_id has been changed for the "TestMoveParent", but not for the "TestMoveChild":

      "name_s": "TestMoveParent",
      "main_location_path_id": "/1/2/122/123/",			=> correct
      ...
      "name_s": "TestMoveChild",
      "main_location_path_id": "/1/2/123/124/",			=> wrong, should be "/1/2/122/123/124"
      

        Activity

        Hide
        Piotr Szczygieł (Inactive) added a comment -

        This issue most likely will be fixed after merging https://github.com/ezsystems/ezpublish-legacy/pull/1210 - it will make sure that http cache is cleared after reindexing.

        Show
        Piotr Szczygieł (Inactive) added a comment - This issue most likely will be fixed after merging https://github.com/ezsystems/ezpublish-legacy/pull/1210 - it will make sure that http cache is cleared after reindexing.
        Hide
        Gunnstein Lye added a comment -

        QA, please test https://github.com/ezsystems/ezpublish-legacy/pull/1210 as a fix for this issue. (If it also fixes https://jira.ez.no/browse/EZP-24919, so much the better.)

        Ignore https://github.com/ezsystems/ezpublish-legacy/pull/1300 for now, we may not need it.

        Show
        Gunnstein Lye added a comment - QA, please test https://github.com/ezsystems/ezpublish-legacy/pull/1210 as a fix for this issue. (If it also fixes https://jira.ez.no/browse/EZP-24919 , so much the better.) Ignore https://github.com/ezsystems/ezpublish-legacy/pull/1300 for now, we may not need it.
        Hide
        Rui Silva (Inactive) added a comment - - edited

        Tested and approved by QA for 5.4.
        Sending back to dev-needed so that PR can be merged.
        Send back to QA afterwards, so that we can inform Support Team according to procedure.

        Show
        Rui Silva (Inactive) added a comment - - edited Tested and approved by QA for 5.4. Sending back to dev-needed so that PR can be merged. Send back to QA afterwards, so that we can inform Support Team according to procedure.
        Show
        Gunnstein Lye added a comment - Merged in https://github.com/ezsystems/ezpublish-legacy/commit/ece79f9b7967e10c8291873f584c874bb413a4fc
        Hide
        Gunnstein Lye added a comment -

        Merged. QA, please inform Support.

        Show
        Gunnstein Lye added a comment - Merged. QA, please inform Support.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nuno Oliveira (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: