Legacy Knowledge Base
Published Jun. 30, 2025

JSONWS API /journal.journalarticle/search return duplicate articles

Written By

Laura Li

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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. 

 

Did this article resolve your issue ?

Legacy Knowledge Base