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

GraphQL: Exception if contenttype group is empty

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 2.5.0
    • 2.5.0
    • Platform > GraphQL

    Description

      Empty contenttype groups will result in 500 error in frontend.
      Step to reproduce:
      1. Create a ContentType group with following name: MYGROUP
      2. Create Schema with ezplatform:graphql:generate-schema
      3. Try to access to the application domain

      Error:

       InvalidConfigurationException
      The child node "fields" at path "overblog_graphql_types.DomainGroup*MYGROUP*Types._object_config" must be configured.
      

      MYGROUP: The ContentTypeGroup name created in 1

      Below Files must not be created if the ContentType Group is empty

      Written app/config/graphql/ezplatform/DomainGroupMYGROUP.types.yml
      Written app/config/graphql/ezplatform/DomainGroupMYGROUPTypes.types.yml
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramzi.arfaoui-obsolete@ez.no Ramzi Arfaoui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: