Translated message

A translation of this page exists in English.

理由句は非推奨となり、JWS 5 Tomcat 9 以降では設定されていない

Solution In Progress - Updated -

Issue

  • JWS 5.0 以降では、Tomcat からの応答に理由句が含まれなくなりました。 これにより、特定のクライアントアプリケーションまたはロードバランサーのヘルスチェックで問題が発生します。

JWS 5 Tomcat:

$ curl -I http://127.0.0.1:8080
HTTP/1.1 200                                               # WITHOUT REASON-PHRASE
Content-Type: text/html;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 28 Aug 2018 05:22:35 GMT

JWS 3.1 Tomcat:

$ curl -I http://127.0.0.1:8080
HTTP/1.1 200 OK                        # WITH REASON-PHRASE
Content-Type: text/html;charset=ISO-8859-1
Transfer-Encoding: chunked
Date: Tue, 28 Aug 2018 05:23:16 GMT
Server: My-Alternate-Server-Name
  • Tomcat 8.5 http-connector および ajp-connector のコミュニティーバージョンのドキュメントによると、コネクターオプションには、理由句の送信を制御できる sendReasonPhrase 属性があります。また、「注記: このオプションは非推奨となり、Tomcat 9 では削除されます。理由句は送信されません。」とも記載されています。とはいえ、Tomcat 9 にも同様の設定可能なオプションはありますか?

Environment

  • Red Hat JBoss Web Server
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content