Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-117775

Error creating GraphQL Servlet with new ServletData component returning null Query or Mutation object

Details

    Description

      Registering a new ServletData component that returns null in the getQuery or getMutation method (because it only wants to contribute in one of those), cause an error en the GraphQL servlet creatiion, disabling all GraphQL requests processing.

       

      Steps to reproduce it:

      1. Create a new module with a ServletData component that returns null in getMutation method.
      2. Deploy the new module
      3. Make a GraphQL request

      Result: A exception is thrown at GraphQL servlet creation and GraphQL request is not processed

      Expected Result: GraphQL servlet is created and GraphQL request is processed

       

      The code of a ServletData implementation with the problem and a compiled module are attached to the issue to reproduce the problem

      Attachments

        Activity

          People

            javier.gamarra Javier Gamarra (Inactive)
            javier.dearcos Javier de Arcos Velilla
            Kiyoshi Lee Kiyoshi Lee
            Javier de Arcos Velilla Javier de Arcos Velilla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 10 weeks, 4 days ago

              Packages

                Version Package
                7.1.10 DXP FP19
                7.1.10.5 SP5
                7.1.X
                7.2.10 DXP FP8
                7.2.10.3 DXP SP3
                7.2.X
                7.3.4 CE GA5
                7.3.10 DXP GA1
                Master