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

Error calling batch mutations from GraphQL

    Description

    The GraphQL batch mutations fail with a NullPointerException because the vulcanBatchEngineImportTaskResource is not set.

    Steps to reproduce:

    1. Create a Structure with a field name "body". Save the structure id.
    2. Execute the following GraphQL query replacing the {STRUCTURE_ID}:
    mutation {
      createSiteStructuredContentBatch(
        siteKey: "20123"
        object: [
          {
            contentFields: [
              {
                contentFieldValue: {
                  data: "<p>From GraphQL 1</p>"
                }
                name: "body"
              }
            ]
            contentStructureId: {STRUCTURE_ID}
            title: "My content 1 from GraphQL"
          }, 
          {
            contentFields: [
              {
                contentFieldValue: {
                  data: "<p>From GraphQL 2</p>"
                }
                name: "body"
              }
            ]
            contentStructureId: {STRUCTURE_ID}
            title: "My content 2 from GraphQL"
          }
        ])
    }

    Expected result: The operation is successful and the structured contents are created

    Result: Internal Server Error 500

     

      Attachments

        Activity

          People

          Assignee:
          carlos.correa Carlos Correa
          Reporter:
          javier.dearcos Javier de Arcos Velilla
          Participants of an Issue:
          Recent user:
          Enterprise Release HU
          Engineering Assignee:
          Carlos Correa
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            18 weeks ago

              Packages

              Version Package
              7.0.X
              7.1.X
              7.2.10 DXP FP18
              7.2.X
              7.3.X
              7.4.3.21 CE GA21
              7.4.3.22 CE GA22
              Master