Bug ID 992533: HTML meta tag URL not rewritten when received under single quotes (' ')

Last Modified: Apr 17, 2024

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, 15.1.10.3, 15.1.10.4

Opened: Feb 11, 2021

Severity: 4-Minor

Symptoms

The URL meta tag is not rewritten if it is encapsulated in single quotes.

Impact

-- Failure in redirection to URL -- Error in sending request to the URL

Conditions

HTML page with meta tag URL under single quotes('') loaded through Portal access

Workaround

Use a custom iRule to find meta tag URL and remove the single ('') before it goes to rewrite. There is no standard iRule as it depends on web application accessed through Portal Access. Here is sample iRule: when REWRITE_REQUEST_DONE { if { [HTTP::path] contains "XXXXX" } { #XXXXX is accessed html file set replace_metaurl 1 set host_name [HTTP::host] } else { set replace_metaurl 0 } } when HTTP_RESPONSE { if {$replace_metaurl == 1} { if { [HTTP::header exists "Content-Length"] and [HTTP::header "Content-Length"] <= 1048576 } { HTTP::collect [HTTP::header Content-Length] } else { HTTP::collect 2097152 ;# 2MB } } } when HTTP_RESPONSE_DATA { if {$replace_metaurl == 1} { # Workaround for support meta tag URL under '' # Find the meta tag URL and remove '' HTTP::release } }

Fix Information

None

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips