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

GraphQL: Exception if contenttype group is empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.5.0
    • Component/s: Platform > GraphQL
    • Labels:

      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

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

              Dates

              Created:
              Updated:
              Resolved: