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

Sub Items does not load when creator or last contributer is deleted

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 3.0.0-beta3
    • Platform > GraphQL
    • None

    Description

      When you delete an user, on all objects, where this user was the creator or last contributer, the subitem list isn't loaded ("Cannot load location"). This affects the parent too.

      The related request returns something like this:

       

      {
        "errors": [
          {
            "message": "Internal server Error",
            "extensions": {
              "category": "internal"
            },
            "locations": [
              {
                "line": 31,
                "column": 37
              }
            ],
            "path": [
              "_repository",
              "location",
              "children",
              "edges",
              5,
              "node",
              "content",
              "_info",
              "owner"
            ]
          }
        ],
        "data": {
          ...
        }
      }
      

      And the logs look like this:

      [GraphQL] eZ\Publish\Core\Base\Exceptions\NotFoundException: Could not find 'Content' with identifier 'array (   'id' => 3800,   'languages' =>    array (   ),   'versionNo' => NULL, )'[404] (caught throwable) at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php line 370. 
      {"throwable":"[object] eZ\\Publish\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'Content' with identifier 'array (\n  'id' => 3800,\n  'languages' => \n  array (\n  ),\n  'versionNo' => NULL,\n)' at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:370, eZ\\Publish\\Core\\Base\\Exceptions\\NotFoundException(code: 404): Could not find 'content' with identifier 'contentId: 3800, versionNo: ' at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Handler.php:315)"} []
      

      I found out, that content id 3800 was in our case an old user, which was someday deleted.

      Steps to reproduce:
      1. Create an user
      2. Log in with this user
      3. Create or edit an object, publish it
      4. delete this user
      5. Try to navigate to this created/edited object

      Tested on v3.0.0-beta3

      Attachments

        Activity

          People

            Unassigned Unassigned
            5a20b73d-6614-43e1-9810-140e0144c0ed@accounts.ibexa.co Hendrik Behme
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: