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

Legacy Content Delete Slot causes fatal error

    XMLWordPrintable

Details

    Description

      Signals in Public API are executed after operations, so currently the slot for Legacy Content Delete triggers fatal error because it tries to load the object to be able to use eZSearch::removeObject( eZContentObject $object );

      However neither ezsolr or ezsearch search engines need anything but content object Id.

      So suggested solution:

      • Add new method 'removeObjectById' on eZSearch and ezpSearchEngine interface, impl in ezsearch and ezsolr
      • deprecate ::removeObject() and make it call the new function instead internally
      • Adapt LegacyContentDelete Slot to use new method instead to avoid trying to load object

      Attachments

        Activity

          People

            Unassigned Unassigned
            andre.romcke-obsolete@ez.no André Rømcke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 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 - 2 hours
                2h