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

アプリケーション ステータス 400 エラーを介して開示される機密情報

written-by

Phil Chapman

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

問題

  • Application Server のエラーは、ソフトウェア、ソフトウェアのバージョン管理、およびユーザー入力の処理方法のヒントを特定する場合があります。
    このサンプル トレースは、特定の URL に無効な文字 (つまり、一連の角括弧 '[ ]' ) あることによってトリガーされました。 Tomcat はアドレスの形式が正しくないと見なします。

    HTTP Status 400 – Bad Request
    Type Exception Report
    Message Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
    Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
    Exceptionjava.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
    org.apache.coyote.http11.Http11InputBuffer.parseRequestLine ....
    org.apache.coyote.http11.Http11Processor.service ....
    org.apache.coyote.AbstractProcessorLight.process ....
    org.apache.coyote.AbstractProtocol$ConnectionHandler.process ....
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun ....
    org.apache.tomcat.util.net.SocketProcessorBase.run ....
    java.util.concurrent.ThreadPoolExecutor.runWorker ....
    java.util.concurrent.ThreadPoolExecutor$Worker.run ....
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run ....
    java.lang.Thread.run ....
    Note The full stack trace of the root cause is available in the server logs.

Environment

  • [一般情報]
    DXP 7.0 DXP 7.1 DXP 7.2 DXP 7.3 で使用されるアプリケーション サーバー

解決策

  • エラーを生成する無効な文字をリソース アドレスから削除します。

  • 400 ステータス エラーをカスタム エラー ページにリダイレクトすることを検討してください。
    このガイドでは、それを実現する方法について
    の参考文献を提供しています。 #55702749

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base