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

Incomplete facet results asking for multiple content fields

    Details

    • Branch Version/s:
      7.3.x, 7.2.x, 7.1.x
    • Backported to Branch:
      Committed

      Description

      When a request is made to strucutured fields grouped by content structure endpoint with agregationTerms containing multiple contentFields, only the result of one of them is included in the response.

       

      Steps to reproduce:

      1. Create a structure with at least two fields
      2. Create a Web Content with the structure created in step 1
      3. Send a request to get all structured contents with the content structure id created in step 1 specifying the contentFields in the aggregationTerms url param separated with a comma
      GET /o/headless-delivery/v1.0/content-structures/39046/structured-contents?fields=contentFields,title&aggregationTerms=contentFields%2FField31789837,contentFields%2FField57805456 HTTP/1.1
      Authorization: Basic dGVzdEBsaWZlcmF5LmNvbTp0ZXN0
      Cookie: COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; JSESSIONID=E839F9A2043B08472E5E7E547BD6E399
      Host: localhost:8080
      Connection: close
      User-Agent: Paw/3.2 (Macintosh; OS X/10.16.0) GCDHTTPRequest
      

      Expected result: The response includes a facets block with both content fields

      Result: The response includes a facets block with only one content field.

       

       

        Attachments

          Activity

            People

            Assignee:
            javier.dearcos Javier de Arcos Velilla
            Reporter:
            javier.dearcos Javier de Arcos Velilla
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              35 weeks, 1 day ago

                Packages

                Version Package
                7.1.10 DXP FP21
                7.1.X
                7.2.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                Master