Bug ID 1031581: Incorrect rewriting of 401 response having json content

Last Modified: Oct 13, 2023

Affected Product(s):
BIG-IP APM(all modules)

Known Affected Versions:
15.1.2, 15.1.2.1, 15.1.3, 15.1.3.1, 15.1.4, 15.1.4.1, 15.1.5, 15.1.5.1, 15.1.6, 15.1.6.1, 15.1.7, 15.1.8, 15.1.8.1, 15.1.8.2, 15.1.9, 15.1.9.1, 15.1.10, 15.1.10.2

Opened: Jul 06, 2021

Severity: 4-Minor

Symptoms

In case of portal access, 401 responses that contain JSON data are rewritten incorrectly, causing errors on client side.

Impact

WebApp will fail to load

Conditions

WebApp sending 401 response with JSON data

Workaround

Custom iRule to not rewrite the content of 401 response. Sample iRule: when HTTP_REQUEST { if {[HTTP::path] ends_with "XXXX" and [HTTP::query] contains "F5CH=I" } { set flag1 1 } } when HTTP_RESPONSE { if {[info exists flag1]} { unset flag1 if {[HTTP::status] == "401"} { REWRITE::disable set flag2 1 } } else { if {[info exists flag2]} { unset flag2 REWRITE::enable } } }

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips