JSONWS API /journal.journalarticle/search return duplicate articles

Issue

  • Reproduction Steps:
    1. Startup Liferay 7.3 DXP-1
    2. Navigate to Content & Data > Web Content
    3. Click [+] to add new article
    4. Set title to: test
    5. Click flag icon to modify translation for fr-FR
    6. Set title to: test 1
    7. Click save
    8. In the same browser window, open developer tools (F12)
    9. In console, run the following Javascript:
    Liferay.Service(
      '/journal.journalarticle/search',
      {
        "companyId": 20097,
        "groupId": 20121,
        "folderIds": [0],
        "classNameId": 0,
        "keywords": 'test',
        "-version": "",
        "-ddmStructureKey": "",
        "-ddmTemplateKey": "",
        "-displayDateGT": "",
        "-displayDateLT": "",
        "status": 0,
        "-reviewDate": "",
        "start": 0,
        "end": 10,
        "-orderByComparator": ""
      },
      function(obj) {
        console.log(obj);
      }
    );
    Note: update companyId and groupId if needed.
    Expected Result: Only one entry is returned.
    Actual Result: Two entries are returned.

 

Environment

  • Liferay DXP 7.3 dxp-1

 

Resolution

  • The issue is fixed by LPS-125162, which is included in fix pack dxp-4. 

 

Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0