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

"id" Identifier for field type in container Content Type will break subitems list

    XMLWordPrintable

Details

    Description

      Creating a Content Type with a field that identifier is set to id can result in the infinite spinner for sub-items lists and an error message in Admin UI.

      GraphQL\Error\InvariantViolation
      Interface field Node.id expects type ID! but TcContent.id is type String.
      

      Steps to reproduce
      1. Clean installation of Ibexa DXP v3.1/3.2/3.3
      2. Create a new Content Type called Test Content Type. Check the container checkbox and add one required Text Line field, with the name "Identifier" and identifier set to id.
      3. Run php bin/console ezplatform:graphql:generate-schema from project root directory.
      3. Create and publish Content of Test Content Type.

      Expected result
      After publication Content is viewed in Admin UI without issues.

      Result
      The error message is displayed at the bottom of the page and subitems list shows infinite spinner.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: