legacy-knowledge-base
公開されました Sep. 10, 2025

URLから'Delta'パラメータを削除/制限する

written-by

Rishabh Agrawal

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

問題

  • ユーザーは、URLの 'delta' パラメーターの値を変更することができ、ページのエントリーは、パラメーターに提供された値に従って表示される。
  • デルタに高い数値が与えられると、システムのパフォーマンスに影響が出る。
  • ユーザーはデルタの値を変更できないはずなので、このパラメータはURLから削除されるべきである。

環境

  • Liferay DXP 7.4

解像度

  • (デルタ) パラメータは、'クエリパラメータ' キーと値のペア (キー=デルタ、値=10,20,50など) であるURLの一部であり、このパラメータをURLから削除することはできない。 したがって、ユーザーはデルタの値を変更することができ、それによってページのエントリー数も変更される。
Query parameters are a defined set of parameters (key-value pair) attached to the end of a URL used to provide additional information to a web server when making requests. They are an important part of the URL that define specific content or actions based on the data being passed.
  • デルタ・パラメータに任意の値が入力されるたびに、例えば、 13, 24, 87、ページ上のエントリ数は、 13,24,87 としてのみ表示されます。 言い換えれば、ユーザーはdeltaパラメータに任意の乱数を追加することができ、ページエントリーはdeltaパラメータに指定された数に従って表示される。 また、UIからエントリー数を選択すると、デルタパラメータの値が変化し続ける。
  • ユーザーが手動でURLからdeltaパラメータを削除すると、ページ上のエントリ数は、検索結果-設定の 「Pagination delta」で指定された値に従って表示されます。
  • デルタの値を大きくすると、この値を変更した特定のユーザーだけにパフォーマンスに影響を与える可能性がある。 しかし、これはアプリケーション全体には影響しない。 例えば 例えば、ユーザーがdelta=50000を選択した場合、その時点の特定のユーザーに対してのみ、ページのロードに時間がかかります。
did-this-article-resolve-your-issue

legacy-knowledge-base