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

GraphQL breaks if content type group has a dash character (-)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.1
    • Component/s: Platform > GraphQL
    • Labels:
      None

      Description

      GraphQL fails if there is a dash "-" in the content type group. The following error occurs

      [2019-04-09 07:37:59] request.CRITICAL: Uncaught PHP Exception Overblog\GraphQLBundle\Resolver\UnresolvableException: "Could not found type with alias "DomainGroupFoo-Bar". Do you forget to define it?" at /app/vendor/overblog/graphql-bundle/src/Resolver/TypeResolver.php line 43 {"exception":"[object] (Overblog\\GraphQLBundle\\Resolver\\UnresolvableException(code: 0): Could not found type with alias \"DomainGroupE-katalog\". Do you forget to define it? at /app/vendor/overblog/graphql-bundle/src/Resolver/TypeResolver.php:43)"} []
      

      Steps to reproduce:

      1) Create new content type group "Foo-Bar"
      2) Create new content type in group
      3) Generate GraphQL Schema
      4) Open GraphiQL or another client
      5) Get error when downloading schema

      NOTE: This will likely fail with other special characters as well

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jani.tarvainen@ez.no Jani Tarvainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: