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

Error trashing an object with multiple locations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 1.4.1
    • Fix Version/s: 1.5.0, 1.4.2
    • Component/s: Platform > REST API v2
    • Labels:
      None

      Description

      Steps to reproduce:

      • Configure your server in DEV (makes it easier)
      • In the backoffice:
      • Create an object
      • Add a second location to this object
      • Trash the object
      • An error is displayed
      • No new items is present in trash

      It seems (I didn't investigate to much) the main location of this object is deleted (but not in trash) and the second location has not been affected.

      Stacktrace:

      <?xml version="1.0" encoding="UTF-8"?>
      <ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml">
       <errorCode>500</errorCode>
       <errorMessage>Internal Server Error</errorMessage>
       <errorDescription>Notice: Trying to get property of non-object</errorDescription>
       <trace>#0 /home/yan/prog/ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/REST/Server/Controller/Location.php(253): Symfony\Component\Debug\ErrorHandler-&gt;handleError(8, 'Trying to get p...', '/home/yan/prog/...', 253, Array)
      #1 [internal function]: eZ\Publish\Core\REST\Server\Controller\Location-&gt;moveSubtree('1/2/113', Object(Symfony\Component\HttpFoundation\Request))
      #2 /home/yan/prog/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(144): call_user_func_array(Array, Array)
      #3 /home/yan/prog/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
      #4 /home/yan/prog/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php(69): Symfony\Component\HttpKernel\HttpKernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
      #5 /home/yan/prog/ezplatform/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(193): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
      #6 /home/yan/prog/ezplatform/web/app.php(66): Symfony\Component\HttpKernel\Kernel-&gt;handle(Object(Symfony\Component\HttpFoundation\Request))
      #7 {main}</trace>
       <file>/home/yan/prog/ezplatform/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/REST/Server/Controller/Location.php</file>
       <line>253</line>
      </ErrorMessage>
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              yannick.roger-obsolete@ez.no Yannick Roger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: