legacy-knowledge-base
公開されました Jun. 30, 2025

JSONWS API /journal.journalarticle/searchは重複した記事を返す

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

learn-legacy-article-disclaimer-text

問題

  • 再現の手順
    1. 起動 Liferay 7.3 DXP-1
    2. コンテンツ & データ > ウェブコンテンツ
    3. 新しい記事を追加するには[+]をクリックする
    4. タイトルを: test
    5. fr-FR
    6.の翻訳を修正するには、旗のアイコンをクリックします。 タイトルを次のように設定する:テスト1
    7. save
    8. 同じブラウザウィンドウで、開発者ツール (F12)
    9. コンソールで以下の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: 必要であれば、companyId と groupId を更新する。
    期待される結果: 1つのエントリのみが返される。
    実際の結果: 2つのエントリーが返される。

環境

  • Liferay DXP 7.3 dxp-1

解像度

  • この問題は、 LPS-125162、修正パック dxp-4 に含まれています。

did-this-article-resolve-your-issue

legacy-knowledge-base