My Oracle Support Banner

WebLogic上でHttpURLConnectionを使用してリダイレクトする際のHTTPステータス307の時の挙動がRFC 7231/RFC 7238と異なるようにみえます (Doc ID 2635537.1)

Last updated on FEBRUARY 05, 2021

適用範囲:

Oracle WebLogic Server - バージョン 12.2.1.3.0 以降
この文書の内容はすべてのプラットフォームに適用されます。

現象

 WebLogic上でHttpURLConnectionを使用してリダイレクトする際のHTTPステータス307の時の挙動がRFC 7231/RFC 7238と異なるようにみえます。

3つのサーブレットがWebLogic上にデプロイされており、

<HTTP_REQUEST_SERVLET>にアクセスしたとき、
HttpURLConnection は、<REDIRECT_SERVLET> へ、HTTP POST メソッド でリクエストし、HTTP ステータス 307を受信します。
それから、RFC 7231/RFC 7238 が"リクエストのメソッドを変更してならない(MUST NOT)"と記述しているにもかかわらず、
そのHttpURLConnection は、<LANDING_SERVLET> へ HTTP GET メソッド でリクエストします。
https://tools.ietf.org/html/rfc7231#section-6.4.7

The 307 (Temporary Redirect) status code indicates that the target
resource resides temporarily under a different URI and the user agent
MUST NOT change the request method if it performs an automatic
redirection to that URI.

 

原因

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


本書の内容
現象
原因
解決策
参照情報

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.