legacy-knowledge-base
公開されました Jul. 2, 2025

一部のアプリケーションがページに動的に表示されることを回避または許可する

written-by

Jose Jimenez

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

問題

  • アプリケーション (ポートレット) の権限システムには、アプリケーションがページに表示されるときのセキュリティ チェックが含まれます。 通常、管理者が以前にそのページを構成または追加していない場合、ユーザーはアプリケーションを表示できません。
  • 期限切れのセッションを開始できるようにするためのサインイン フォーム/アプリケーションなど、管理者がユーザーのページにある機能を動的に許可したい場合があるため、構成によってそのチェックをバイパスすることは可能です。別のページに移動せずに。

Environment

  • Liferay のすべてのバージョンと環境。

解決策

  • ポートレット識別子 (別名 portletId) 次のポータル プロパティへ: portlet.add.default.resource.check.whitelist
  • 設定には環境変数を指定することもできます:LIFERAY_PORTLET_PERIOD_ADD_PERIOD_DEFAULT_PERIOD_RESOURCE_PERIOD_CHECK_PERIOD_WHITELIST
  • デフォルトで許可されている一連のアプリケーション/ポートレットがあります。 コントロール パネル > サーバー管理 > プロパティ > ポータル プロパティ で現在の構成を確認できます。 portlet.add.default.resource.check.whitelistで検索します。
  • portlet.add.default.resource.check.whitelist プロパティを portal-ext.properties ファイルに追加または変更し、このリストにポートレット識別子を追加/削除して、どのアプリケーションを動的に表示できるかを制御します管理者によってページに追加されていないにもかかわらず。
  • 例えば。 DXP 7.3.10 のデフォルト値は次のとおりです。
    #
    # Set a list of comma delimited portlet IDs that will bypass the security
    # check set in the property "portlet.add.default.resource.check.enabled".
    #
    # Env: LIFERAY_PORTLET_PERIOD_ADD_PERIOD_DEFAULT_PERIOD_RESOURCE_PERIOD_CHECK_PERIOD_WHITELIST
    #
    portlet.add.default.resource.check.whitelist
    =\
    com_liferay_calendar_web_portlet_CalendarPortlet,\
    com_liferay_login_web_portlet_FastLoginPortlet,\
    com_liferay_login_web_portlet_LoginPortlet,\
    com_liferay_portlet_configuration_css_web_portlet_PortletConfigurationCSSPortlet,\
    com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet,\
    com_liferay_product_navigation_simulation_web_portlet_SimulationPortlet,\
    com_liferay_staging_bar_web_portlet_StagingBarPortlet

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base