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

eZ Recommendation Engine legacy integration breaks "discard draft"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.4.6
    • Fix Version/s: Customer request, 5.4.7
    • Component/s: None
    • Labels:
      None
    • Environment:

      Description

      eZ Publish 5.4.6 and latest version of eZ Recommendation Bundle.

      1. Enable the eZ Recommendation Engine legacy services as documented

          ez_recommendation.legacy.search_engine:
              class: ezpSearchEngine
              factory_class: EzSystems\RecommendationBundle\eZ\Publish\LegacySearch\LegacySearchFactory
              factory_method: build
              arguments: [@ezpublish_legacy.kernel]
      
          ez_recommendation.legacy.recommendation_search_engine:
              class: EzSystems\RecommendationBundle\eZ\Publish\LegacySearch\RecommendationLegacySearchEngine
              arguments:
                  - @ez_recommendation.client.yoochoose_notifier
                  - @ez_recommendation.legacy.search_engine
      
          ez_recommendation.legacy.search_configuration_mapper:
              class: EzSystems\RecommendationBundle\eZ\Publish\LegacySearch\ConfigurationMapper
              arguments:
                  - @ez_recommendation.legacy.recommendation_search_engine
                  - @ezpublish.siteaccess
              tags:
                  - { name: kernel.event_subscriber }
      

      2. Create a new draft of any object

      3. Discard the draft

      4. Fatal error, which results in an incompletely removed object (which has some side effects later as well, such as causing user login/logout to crash when trying to clean up internal drafts):

      [2016-06-17 20:59:00] request.CRITICAL: Uncaught PHP Exception eZ\Publish\Core\Base\Exceptions\NotFoundException: "Could not find 'Content' with identifier 'array (   'id' => '124',   'languages' => NULL,   'versionNo' => 1, )'" at /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 394 {"exception":"[object] (eZ\\Publish\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'Content' with identifier 'array (\n  'id' => '124',\n  'languages' => NULL,\n  'versionNo' => 1,\n)' at /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:394, eZ\\Publish\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'content' with identifier 'contentId: 124, versionNo: 1' at /var/www/ezpublish54/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php:316)"} []
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ricardo.correia-obsolete@ez.no Ricardo Correia (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: