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

Nonexistent object in ezobjectrelationlist results in error 500

    Details

      Description

      If you have a content object with an ezobjectrelationlist and delete a relate object, you won't be able to edit it or publish it, getting a "The content cannot be published (Connection error : 500.)" error.

      Steps to reproduce
      • Create the "Article #001" article.
      • Create "Object #001" from a class with an ezobjectrelationlist field type, add to it and publish it.
      • Delete "Article #001".
      • Edit "Object #001", remove "Article #001" from its relations and try to publish it or save it.

        "The content cannot be published (Connection error : 500.)"

        Issue Links

          Activity

          Hide
          Yannick Roger (Inactive) added a comment - - edited

          Stack

          {
              "ErrorMessage": {
                  "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
                  "errorCode": 500,
                  "errorMessage": "Internal Server Error",
                  "errorDescription": "Missing relation-item external data property: ezcontentobject_tree_node_id",
                  "trace": "#0 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Mapper.php(164): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\RelationListConverter->toStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\FieldValue), Object(eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue))\n#1 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(287): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Mapper->convertToStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field))\n#2 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(160): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->createExistingFieldInNewVersion(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field), Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#3 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40337): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->createExistingFieldsInNewVersion(Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#4 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Handler.php(265): eZPublishCorePersistenceLegacyContentFieldHandler_000000007d7f518a000000006b7a6785e2cace4bb1df548b3e8e980d01553b77->createExistingFieldsInNewVersion(Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#5 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40607): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Handler->createDraftFromVersion(75, 1, 14)\n#6 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Cache\/ContentHandler.php(47): eZPublishCorePersistenceLegacyContentHandler_000000007d7f5103000000006b7a6785e2cace4bb1df548b3e8e980d01553b77->createDraftFromVersion(75, 1, 14)\n#7 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/ContentService.php(1079): eZ\\Publish\\Core\\Persistence\\Cache\\ContentHandler->createDraftFromVersion(75, 1, 14)\n#8 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/SignalSlot\/ContentService.php(322): eZ\\Publish\\Core\\Repository\\ContentService->createContentDraft(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\ContentInfo), NULL, NULL)\n#9 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/Content.php(424): eZ\\Publish\\Core\\SignalSlot\\ContentService->createContentDraft(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\ContentInfo))\n#10 [internal function]: eZ\\Publish\\Core\\REST\\Server\\Controller\\Content->createDraftFromCurrentVersion('75')\n#11 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(144): call_user_func_array(Array, Array)\n#12 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#13 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/DependencyInjection\/ContainerAwareHttpKernel.php(69): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#14 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php(185): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#15 \/home\/yan\/prog\/ezplatform\/web\/app.php(67): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#16 {main}",
                  "file": "\/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldValue\/Converter\/RelationListConverter.php",
                  "line": 64
              }
          }
          

          Link to where the error is thrown: https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationListConverter.php#L63

          Show
          Yannick Roger (Inactive) added a comment - - edited Stack { "ErrorMessage": { "_media-type": "application\/vnd.ez.api.ErrorMessage+json", "errorCode": 500, "errorMessage": "Internal Server Error", "errorDescription": "Missing relation-item external data property: ezcontentobject_tree_node_id", "trace": "#0 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Mapper.php(164): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\RelationListConverter->toStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\FieldValue), Object(eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue))\n#1 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(287): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Mapper->convertToStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field))\n#2 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(160): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->createExistingFieldInNewVersion(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field), Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#3 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40337): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->createExistingFieldsInNewVersion(Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#4 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Handler.php(265): eZPublishCorePersistenceLegacyContentFieldHandler_000000007d7f518a000000006b7a6785e2cace4bb1df548b3e8e980d01553b77->createExistingFieldsInNewVersion(Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#5 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40607): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Handler->createDraftFromVersion(75, 1, 14)\n#6 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Cache\/ContentHandler.php(47): eZPublishCorePersistenceLegacyContentHandler_000000007d7f5103000000006b7a6785e2cace4bb1df548b3e8e980d01553b77->createDraftFromVersion(75, 1, 14)\n#7 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/ContentService.php(1079): eZ\\Publish\\Core\\Persistence\\Cache\\ContentHandler->createDraftFromVersion(75, 1, 14)\n#8 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/SignalSlot\/ContentService.php(322): eZ\\Publish\\Core\\Repository\\ContentService->createContentDraft(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\ContentInfo), NULL, NULL)\n#9 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/Content.php(424): eZ\\Publish\\Core\\SignalSlot\\ContentService->createContentDraft(Object(eZ\\Publish\\API\\Repository\\Values\\Content\\ContentInfo))\n#10 [internal function]: eZ\\Publish\\Core\\REST\\Server\\Controller\\Content->createDraftFromCurrentVersion('75')\n#11 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(144): call_user_func_array(Array, Array)\n#12 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#13 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/DependencyInjection\/ContainerAwareHttpKernel.php(69): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#14 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php(185): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#15 \/home\/yan\/prog\/ezplatform\/web\/app.php(67): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#16 {main}", "file": "\/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldValue\/Converter\/RelationListConverter.php", "line": 64 } } Link to where the error is thrown: https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationListConverter.php#L63
          Hide
          Yannick Roger (Inactive) added a comment -

          Stack if content is removed from trash

          {
              "ErrorMessage": {
                  "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
                  "errorCode": 500,
                  "errorMessage": "Internal Server Error",
                  "errorDescription": "Could find Content with id'sarray (\n  0 => 74,\n)",
                  "trace": "#0 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldValue\/Converter\/RelationListConverter.php(53): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\RelationListConverter->getRelationXmlHashFromDB(Array)\n#1 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Mapper.php(164): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\RelationListConverter->toStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\FieldValue), Object(eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue))\n#2 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(252): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Mapper->convertToStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field))\n#3 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(338): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->updateField(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field), Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#4 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40357): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->updateFields(Object(eZ\\Publish\\SPI\\Persistence\\Content), Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct), Object(eZ\\Publish\\SPI\\Persistence\\Content\\Type))\n#5 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Handler.php(494): eZPublishCorePersistenceLegacyContentFieldHandler_0000000011ba6b7b0000000074b7f60ce2cace4bb1df548b3e8e980d01553b77->updateFields(Object(eZ\\Publish\\SPI\\Persistence\\Content), Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct), Object(eZ\\Publish\\SPI\\Persistence\\Content\\Type))\n#6 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40687): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Handler->updateContent(75, 2, Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct))\n#7 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Cache\/ContentHandler.php(166): eZPublishCorePersistenceLegacyContentHandler_0000000011ba6bf20000000074b7f60ce2cace4bb1df548b3e8e980d01553b77->updateContent(75, 2, Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct))\n#8 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/ContentService.php(1314): eZ\\Publish\\Core\\Persistence\\Cache\\ContentHandler->updateContent(75, 2, Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct))\n#9 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/SignalSlot\/ContentService.php(404): eZ\\Publish\\Core\\Repository\\ContentService->updateContent(Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\VersionInfo), Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\ContentUpdateStruct))\n#10 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/Content.php(476): eZ\\Publish\\Core\\SignalSlot\\ContentService->updateContent(Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\VersionInfo), Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\ContentUpdateStruct))\n#11 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/platform-ui-bundle\/Controller\/Rest\/ContentController.php(69): eZ\\Publish\\Core\\REST\\Server\\Controller\\Content->updateVersion('75', '2', Object(Symfony\\Component\\HttpFoundation\\Request))\n#12 [internal function]: EzSystems\\PlatformUIBundle\\Controller\\Rest\\ContentController->updateVersion('75', '2', Object(Symfony\\Component\\HttpFoundation\\Request))\n#13 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(144): call_user_func_array(Array, Array)\n#14 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#15 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/DependencyInjection\/ContainerAwareHttpKernel.php(69): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#16 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php(185): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#17 \/home\/yan\/prog\/ezplatform\/web\/app.php(67): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#18 {main}",
                  "file": "\/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldValue\/Converter\/RelationListConverter.php",
                  "line": 304
              }
          }
          

          Show
          Yannick Roger (Inactive) added a comment - Stack if content is removed from trash { "ErrorMessage": { "_media-type": "application\/vnd.ez.api.ErrorMessage+json", "errorCode": 500, "errorMessage": "Internal Server Error", "errorDescription": "Could find Content with id'sarray (\n 0 => 74,\n)", "trace": "#0 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldValue\/Converter\/RelationListConverter.php(53): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\RelationListConverter->getRelationXmlHashFromDB(Array)\n#1 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Mapper.php(164): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldValue\\Converter\\RelationListConverter->toStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\FieldValue), Object(eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\StorageFieldValue))\n#2 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(252): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Mapper->convertToStorageValue(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field))\n#3 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldHandler.php(338): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->updateField(Object(eZ\\Publish\\SPI\\Persistence\\Content\\Field), Object(eZ\\Publish\\SPI\\Persistence\\Content))\n#4 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40357): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\FieldHandler->updateFields(Object(eZ\\Publish\\SPI\\Persistence\\Content), Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct), Object(eZ\\Publish\\SPI\\Persistence\\Content\\Type))\n#5 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/Handler.php(494): eZPublishCorePersistenceLegacyContentFieldHandler_0000000011ba6b7b0000000074b7f60ce2cace4bb1df548b3e8e980d01553b77->updateFields(Object(eZ\\Publish\\SPI\\Persistence\\Content), Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct), Object(eZ\\Publish\\SPI\\Persistence\\Content\\Type))\n#6 \/home\/yan\/prog\/ezplatform\/app\/cache\/dev\/appDevDebugProjectContainer.php(40687): eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Handler->updateContent(75, 2, Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct))\n#7 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Cache\/ContentHandler.php(166): eZPublishCorePersistenceLegacyContentHandler_0000000011ba6bf20000000074b7f60ce2cace4bb1df548b3e8e980d01553b77->updateContent(75, 2, Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct))\n#8 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/ContentService.php(1314): eZ\\Publish\\Core\\Persistence\\Cache\\ContentHandler->updateContent(75, 2, Object(eZ\\Publish\\SPI\\Persistence\\Content\\UpdateStruct))\n#9 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/SignalSlot\/ContentService.php(404): eZ\\Publish\\Core\\Repository\\ContentService->updateContent(Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\VersionInfo), Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\ContentUpdateStruct))\n#10 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/Content.php(476): eZ\\Publish\\Core\\SignalSlot\\ContentService->updateContent(Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\VersionInfo), Object(eZ\\Publish\\Core\\Repository\\Values\\Content\\ContentUpdateStruct))\n#11 \/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/platform-ui-bundle\/Controller\/Rest\/ContentController.php(69): eZ\\Publish\\Core\\REST\\Server\\Controller\\Content->updateVersion('75', '2', Object(Symfony\\Component\\HttpFoundation\\Request))\n#12 [internal function]: EzSystems\\PlatformUIBundle\\Controller\\Rest\\ContentController->updateVersion('75', '2', Object(Symfony\\Component\\HttpFoundation\\Request))\n#13 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(144): call_user_func_array(Array, Array)\n#14 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php(64): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#15 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/DependencyInjection\/ContainerAwareHttpKernel.php(69): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#16 \/home\/yan\/prog\/ezplatform\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php(185): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#17 \/home\/yan\/prog\/ezplatform\/web\/app.php(67): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#18 {main}", "file": "\/home\/yan\/prog\/ezplatform\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Persistence\/Legacy\/Content\/FieldValue\/Converter\/RelationListConverter.php", "line": 304 } }
          Hide
          Yannick Roger (Inactive) added a comment - - edited

          PR for the backend part: https://github.com/ezsystems/ezpublish-kernel/pull/1788
          Fixes on the frontend are the same as EZP-26357

          Show
          Yannick Roger (Inactive) added a comment - - edited PR for the backend part: https://github.com/ezsystems/ezpublish-kernel/pull/1788 Fixes on the frontend are the same as EZP-26357
          Hide
          Yannick Roger (Inactive) added a comment - - edited

          Once the bug is fixed we should create an improvement ticket in order to better display when a related object is in trash or deleted. [~damien.pobel@ez.no] Roland Benedetti

          We might also consider (as suggested in André's PR) warning/blocking the user when he/she is about to trash/delete a content that is included in another object's relation.

          Show
          Yannick Roger (Inactive) added a comment - - edited Once the bug is fixed we should create an improvement ticket in order to better display when a related object is in trash or deleted. [~damien.pobel@ez.no] Roland Benedetti We might also consider (as suggested in André's PR) warning/blocking the user when he/she is about to trash/delete a content that is included in another object's relation.
          Show
          André Rømcke added a comment - Kernel change merged: https://github.com/ezsystems/ezpublish-kernel/commit/2eac8c34abcda76a2cc7dd22105a76dad2212407
          Hide
          André Rømcke added a comment -

          Also created epic for supporting invalid data: https://jira.ez.no/browse/EZP-26409

          Show
          André Rømcke added a comment - Also created epic for supporting invalid data: https://jira.ez.no/browse/EZP-26409
          Hide
          Yannick Roger (Inactive) added a comment -

          To QA, please remember you need to have fixes for EZP-26357 for the frontend to also work.

          Show
          Yannick Roger (Inactive) added a comment - To QA, please remember you need to have fixes for EZP-26357 for the frontend to also work.
          Hide
          Miguel das Neves Jacinto (Inactive) added a comment -

          QA Approved

          Show
          Miguel das Neves Jacinto (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Eduardo Fernandes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: