Legacy Knowledge Base
公開されました Jun. 30, 2025

膨大なデータを含む Web コンテンツを公開できません

Written By

Pooja Bhambani

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.

問題

  • 再現手順:
    1.
    Liferay DXP 7.4 を起動します
    2.
    コンテンツとデータ下の Webコンテンツに移動します。
    ストラクチャに移動し、繰り返し可能な 3 つの「リッチ テキスト」フィールドを追加します。 [保存] をクリックします。
    4. 作成したストラクチャで Web コンテンツを作成します。
    5.
    データを入力します。 反復可能なフィールドに 40 ~ 50 のエントリを入力してください。
    6.
    Web コンテンツの公開を試みます。

    実際の結果: Web コンテンツが公開されておらず、コンソールに以下の WARN が表示されています。

    2022-09-28 10:06:50.093 WARN [http-nio-8080-exec-10][code_jsp:159]
    {code="400", msg="", uri=/o/dynamic-data-mapping-form-context-provider/}
    

    期待される結果: Web コンテンツは、膨大なデータで公開する必要があります。

環境

  • Liferay DXP 7.4

解決

  • Web コンテンツに大量のデータを追加すると、リクエストの制限を超えます。
  • この問題を解決するには、ユーザーは portal-ext.properties ファイルに次のプロパティを含める必要があります。
## Upload Servlet Request
#
# Set the threshold size to prevent extraneous serialization of uploaded
# data.
#
# Env: LIFERAY_COM_PERIOD_LIFERAY_PERIOD_PORTAL_PERIOD_KERNEL_PERIOD_UPLOAD_PERIOD__UPPERCASEF_ILE_UPPERCASEI_TEM_PERIOD_THRESHOLD_PERIOD_SIZE
#
com.liferay.portal.kernel.upload.FileItem.threshold.size=8048576

追加情報

  • 上記のプロパティを使用して portal-ext.properties ファイルを構成し、サーバーを再起動して変更を確認します。
  • 最初に下位環境での動作を確認してください。すべてが期待どおりに機能する場合、問題がなければ本番環境に移行してください。
  • LPS-163222
Did this article resolve your issue ?

Legacy Knowledge Base