Bug ID 1621949: [PA]Applications break when specific host is in rewrite control list of rewrite profile

Last Modified: Sep 27, 2024

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

Known Affected Versions:
15.1.10.3, 15.1.10.4, 15.1.10.5, 16.1.4, 16.1.4.1, 16.1.4.2, 16.1.4.3, 16.1.5, 17.1.1.2, 17.1.1.3, 17.1.1.4

Opened: Jul 31, 2024

Severity: 3-Major

Symptoms

You may observe applications not working with console error like ERROR TypeError: Cannot read properties of undefined (reading 'location/window')

Impact

Applications via Portal Access is not working.

Conditions

Rewrite profile's rewrite control list contains specific host instead of Any/Any.

Workaround

Custom irule ======= when REWRITE_REQUEST_DONE { if { [HTTP::path] ends_with "main.99af53556af6dbcb.js" } { REWRITE::post_process 1 set rewrite_new 1 } } when REWRITE_RESPONSE_DONE { if {[info exists rewrite_new]} { unset rewrite_new set rewrite_str {/*F5_*/ F5_g_window /*_5F#window#*/ .open().location.href=r} set rewrite_str_len [string length $rewrite_str] set strt [string first $rewrite_str [REWRITE::payload]] if {$strt > 0} { REWRITE::payload replace $strt $rewrite_str_len {F5_g_window.open(r)} } } } =======

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips