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

Delete translation (from all Versions) PAPI does not update Solr index

    XMLWordPrintable

    Details

      Description

      When removing translation from a Content Item the solr index is not updated and still returns the old results.

      Setup:
      1. eZ Platform using Solr as search engine
      2. Custom commands to query Solr index and delete translation available (added in attachment)
      3. Setup with at least two languages. For example: eng-GB and fre-FR

      Steps to reproduce:
      1. Create an Article (fill "ArticleTest" in required fields) and publish.
      2. Translate the article to French (change all fields to "ArticleTestFrench") and publish
      3. Check the Content ID of the added item and then remove it using command:

      php app/console testSystem:ezp27417:deleteTranslations %CONTENT_ID fre-FR

      Note: remember about exporting SYMFONY_ENV, for example

       export SYMFONY_ENV=prod

      4. Search for the removed translation:

      php app/console testSystem:ezp27417:searchQuery ArticleTestFrench fre-FR

      Expected result:
      Empty result set is returned
      Actual result:
      Exception:

        [eZ\Publish\Core\Base\Exceptions\NotFoundException]
        Could not find 'Content' with identifier 'array (
          'id' => 60,
          'languages' =>
          array (
            0 => 'fre-FR',
          ),
          'versionNo' => 2,
        )'
        [eZ\Publish\Core\Base\Exceptions\NotFoundException]
        Could not find 'content' with identifier 'contentId: 60, versionNo: 2'
      

      The used commands are available as an attachment to this ticket. In this case you can add your own bundle using:

      php app/console generate:bundle --namespace=EzSystems/Ezp27417Bundle --dir=src --format=yml --no-interaction
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              marek.nocon@ez.no Marek Nocoń
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: