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

Last Modified: Jul 27, 2021

Bug Tracker

Affected Product:  See more info
BIG-IP APM(all modules)

Known Affected Versions:
15.1.0, 15.1.0.1, 15.1.0.2, 15.1.0.3, 15.1.0.4, 15.1.0.5, 15.1.1, 15.1.2, 15.1.2.1, 15.1.3, 15.1.3.1

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