Legacy Knowledge Base
公開されました Sep. 10, 2025

ユーザー0はアクセスが許可されていません - 警告のトレース

Written By

Ankit Gupta

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.

問題

ユーザーがログインしようとすると、必ず以下のような警告が表示されます:

2019-03-22 07:13:52.951 WARN [http-nio-8080-exec-366][SecurityPortletContainerWrapper:363] User 0 is not allowed to access URL http://localhos:8080/web/guest/home and portlet com_liferay_login_web_portlet_LoginPortlet

環境

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • Liferay DXP 7.3

解像度

この警告は、 CSRF攻撃によって、受信したリクエストに不正なCSRFトークンがある場合に表示されます。しかし、これは単なる誤検出であることもあり、通常は次のような場合に表示されます:

ケース1: a クローラーボット がログインページをダウンロードしようとしているが、CSRFトークンとセッションクッキーが含まれていないため、そのリクエストは拒否された。

  • この問題を解決するには、Liferayのサポートサービスに問題のHotfix LPS-75442 をリクエストするか、この問題の解決策を含むfixpackをインストールすることができます。 このLPSは、リクエストにセッションクッキーがない場合、WARNトレースの書き込みを回避することができます。
  • システムにパッチを適用したくない場合は、robots.txtファイルを使用して、問題のあるファイルをクローラーボットのインデックスに登録しないようにすることもできます。

ケース2: 「セッションの延長」機能が正しく動作せず、最終的なユーザーセッションが失効しているため、ログインしようとすると、以前のセッションから間違ったCSRFトークンを持っている。

  • この問題を解決するには、 session.timeout Liferay portal.properties がアプリケーションサーバーで設定されたセッションタイムアウトと同じ値であることを再確認する必要があります。
  • また、 session.timeout.auto.extend.offset が60秒以上であることを確認し、 chrome javascript intensive throttlingとの問題を回避する必要があります。
  • また、Liferayのサポートサービスに問題のHotfixをリクエストすることをお勧めします:
    • LPS-133668 - 「セッションの拡張」操作が正しく動作しない場合に警告するトレースを追加する。
    • LPS-137264 - session.timeout.auto.extend.offset プロパティのデフォルト値を修正し、 chrome javascript intensive throttlingとの問題を回避しました。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base