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

eZ Find: moving a node does not re-index its children with delayed indexing

    Details

      Description

      Steps to reproduce:

      Preparation:

      1. Prepare a eZ Publish 4.5/eZ Find 2.4 installation, fully patched;
      2. Enable delayed indexing;
      3. Make sure Solr service is runnnig;

      Issue:

      1. Create the following content structure:

      Home
      	Articles (folder)
      		Test1 (article)
      			Test2 (article)
      	Articles 2 (folder)
      

      2. Run content indexing cronjob:

      $ php runcronjobs.php ezfindexcontent
      

      3. Go to Solr's admin interface (default is http://localhost:8983/solr/admin/) and search for "Test2". It returns:

      ...
      <str name="meta_main_url_alias_ms">Articles/Test1/Test2</str>
      ...
      

      4. Go back to eZ Publish's admin interface, and move "Test1" article to "Articles 2" folder;
      5. Run content indexing cronjob;
      6. Go to Solr's admin interface and search for "Test2". It still returns:

      <str name="meta_main_url_alias_ms">Articles/Test1/Test2</str>
      

      ...which is wrong, should return:

      <str name="meta_main_url_alias_ms">Articles-2/Test1/Test2</str>
      

        Issue Links

          Activity

          Show
          Yannick Roger (Inactive) added a comment - - edited PR: https://github.com/ezsystems/ezpublish-legacy/pull/1119
          Show
          Yannick Roger (Inactive) added a comment - - edited Fixed in master: ezpublish-legacy: https://github.com/ezsystems/ezpublish-legacy/commit/9a15f89355acd095e858e1687ca91efe9a002d1f ezpublish-legacy: https://github.com/ezsystems/ezpublish-legacy/commit/4f7a8de2b876b9454a9e5489804414baa81b06e0 ezfind: https://github.com/ezsystems/ezfind/commit/30ed2a144710fab1b4fe872d929d58902e0ad956
          Hide
          Paulo Nunes (Inactive) added a comment -

          Hi [~yannick.roger@ez.no]
          I'm unabled to apply the patches provided, even after trying to apply other patches related with missing ones
          I have installed each versions, applyed all service packs available to customers and then try to apply the fixes provided in here.
          One common 'complain' is the non existence of "ests/tests/kernel/content/ezcontentoperationdelete_regression.php" file in production environments
          ===
          4.5
          ===

          patching file cronjobs/indexcontent.php
          Hunk #1 FAILED at 53.
          Hunk #2 succeeded at 49 (offset -13 lines).
          Hunk #3 FAILED at 74.
          2 out of 3 hunks FAILED -- saving rejects to file cronjobs/indexcontent.php.rej
          patching file kernel/classes/ezcontentobjecttreenodeoperations.php
          Hunk #1 succeeded at 125 (offset -2 lines).
          patching file kernel/classes/ezsearch.php
          Hunk #1 succeeded at 545 (offset -25 lines).
          patching file kernel/content/ezcontentoperationcollection.php
          Hunk #1 FAILED at 573.
          Hunk #2 succeeded at 564 (offset -35 lines).
          1 out of 2 hunks FAILED -- saving rejects to file kernel/content/ezcontentoperationcollection.php.rej
          can't find file to patch at input line 159
          Perhaps you used the wrong -p or --strip option?
          The text leading up to this was:
          --------------------------
          |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |index e9d9cae..d370c4c 100644
          |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          --------------------------

          ===
          4.6
          ===

          patching file cronjobs/indexcontent.php
          patching file kernel/classes/ezcontentobjecttreenodeoperations.php
          patching file kernel/classes/ezsearch.php
          patching file kernel/content/ezcontentoperationcollection.php
          Hunk #1 FAILED at 550.
          Hunk #2 succeeded at 549 (offset -27 lines).
          1 out of 2 hunks FAILED -- saving rejects to file kernel/content/ezcontentoperationcollection.php.rej
          can't find file to patch at input line 159
          Perhaps you used the wrong -p or --strip option?
          The text leading up to this was:
          --------------------------
          |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |index 1b6695a..f907082 100644
          |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          --------------------------

          ===
          4.7
          ===

          patching file cronjobs/indexcontent.php
          patching file kernel/classes/ezcontentobjecttreenodeoperations.php
          patching file kernel/classes/ezsearch.php
          patching file kernel/content/ezcontentoperationcollection.php
          Hunk #1 succeeded at 522 (offset -28 lines).
          Hunk #2 succeeded at 550 (offset -28 lines).
          can't find file to patch at input line 159
          Perhaps you used the wrong -p or --strip option?
          The text leading up to this was:
          --------------------------
          |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |index 0295656..5efd302 100644
          |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          --------------------------

          ===
          5.0
          ===

          patching file cronjobs/indexcontent.php
          patching file kernel/classes/ezcontentobjecttreenodeoperations.php
          patching file kernel/classes/ezsearch.php
          patching file kernel/content/ezcontentoperationcollection.php
          Hunk #1 succeeded at 522 (offset -28 lines).
          Hunk #2 succeeded at 550 (offset -28 lines).
          can't find file to patch at input line 159
          Perhaps you used the wrong -p or --strip option?
          The text leading up to this was:
          --------------------------
          |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |index 0295656..5efd302 100644
          |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          --------------------------

          ===
          5.1
          ===

          patching file cronjobs/indexcontent.php
          patching file kernel/classes/ezcontentobjecttreenodeoperations.php
          patching file kernel/classes/ezsearch.php
          patching file kernel/content/ezcontentoperationcollection.php
          can't find file to patch at input line 159
          Perhaps you used the wrong -p or --strip option?
          The text leading up to this was:
          --------------------------
          |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |index c7be8e6..db42746 100644
          |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          --------------------------

          ===
          5.2
          ===

          patching file cronjobs/indexcontent.php
          patching file kernel/classes/ezcontentobjecttreenodeoperations.php
          Hunk #1 succeeded at 104 (offset -5 lines).
          patching file kernel/classes/ezsearch.php
          patching file kernel/content/ezcontentoperationcollection.php
          can't find file to patch at input line 159
          Perhaps you used the wrong -p or --strip option?
          The text leading up to this was:
          --------------------------
          |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |index c7be8e6..db42746 100644
          |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php
          --------------------------

          Show
          Paulo Nunes (Inactive) added a comment - Hi [~yannick.roger@ez.no] I'm unabled to apply the patches provided, even after trying to apply other patches related with missing ones I have installed each versions, applyed all service packs available to customers and then try to apply the fixes provided in here. One common 'complain' is the non existence of "ests/tests/kernel/content/ezcontentoperationdelete_regression.php" file in production environments === 4.5 === patching file cronjobs/indexcontent.php Hunk #1 FAILED at 53. Hunk #2 succeeded at 49 (offset -13 lines). Hunk #3 FAILED at 74. 2 out of 3 hunks FAILED -- saving rejects to file cronjobs/indexcontent.php.rej patching file kernel/classes/ezcontentobjecttreenodeoperations.php Hunk #1 succeeded at 125 (offset -2 lines). patching file kernel/classes/ezsearch.php Hunk #1 succeeded at 545 (offset -25 lines). patching file kernel/content/ezcontentoperationcollection.php Hunk #1 FAILED at 573. Hunk #2 succeeded at 564 (offset -35 lines). 1 out of 2 hunks FAILED -- saving rejects to file kernel/content/ezcontentoperationcollection.php.rej can't find file to patch at input line 159 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |index e9d9cae..d370c4c 100644 |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php -------------------------- === 4.6 === patching file cronjobs/indexcontent.php patching file kernel/classes/ezcontentobjecttreenodeoperations.php patching file kernel/classes/ezsearch.php patching file kernel/content/ezcontentoperationcollection.php Hunk #1 FAILED at 550. Hunk #2 succeeded at 549 (offset -27 lines). 1 out of 2 hunks FAILED -- saving rejects to file kernel/content/ezcontentoperationcollection.php.rej can't find file to patch at input line 159 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |index 1b6695a..f907082 100644 |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php -------------------------- === 4.7 === patching file cronjobs/indexcontent.php patching file kernel/classes/ezcontentobjecttreenodeoperations.php patching file kernel/classes/ezsearch.php patching file kernel/content/ezcontentoperationcollection.php Hunk #1 succeeded at 522 (offset -28 lines). Hunk #2 succeeded at 550 (offset -28 lines). can't find file to patch at input line 159 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |index 0295656..5efd302 100644 |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php -------------------------- === 5.0 === patching file cronjobs/indexcontent.php patching file kernel/classes/ezcontentobjecttreenodeoperations.php patching file kernel/classes/ezsearch.php patching file kernel/content/ezcontentoperationcollection.php Hunk #1 succeeded at 522 (offset -28 lines). Hunk #2 succeeded at 550 (offset -28 lines). can't find file to patch at input line 159 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |index 0295656..5efd302 100644 |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php -------------------------- === 5.1 === patching file cronjobs/indexcontent.php patching file kernel/classes/ezcontentobjecttreenodeoperations.php patching file kernel/classes/ezsearch.php patching file kernel/content/ezcontentoperationcollection.php can't find file to patch at input line 159 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |index c7be8e6..db42746 100644 |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php -------------------------- === 5.2 === patching file cronjobs/indexcontent.php patching file kernel/classes/ezcontentobjecttreenodeoperations.php Hunk #1 succeeded at 104 (offset -5 lines). patching file kernel/classes/ezsearch.php patching file kernel/content/ezcontentoperationcollection.php can't find file to patch at input line 159 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |index c7be8e6..db42746 100644 |--- a/tests/tests/kernel/content/ezcontentoperationdelete_regression.php |+++ b/tests/tests/kernel/content/ezcontentoperationdelete_regression.php --------------------------
          Hide
          Yannick Roger (Inactive) added a comment -

          ezfind also needs to be patched: https://github.com/ezsystems/ezfind/pull/185

          Show
          Yannick Roger (Inactive) added a comment - ezfind also needs to be patched: https://github.com/ezsystems/ezfind/pull/185
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Tested on 4.5, 4.6, 4.7, 5.0, 5.1, 5.2, 5.3, 5.4 and master

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved Tested on 4.5, 4.6, 4.7, 5.0, 5.1, 5.2, 5.3, 5.4 and master

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 15 minutes
                15m