Symptoms
HREF url in <extension> tag of JNLP is not rewritten with f5-w-hexencoded_backend_host, so URL content cannot be accessible by JRE.
Impact
Java applets may not work.
Conditions
Backend JNLP with href=url in <extension> tag.
Workaround
There is a common approach to patch not rewritten HREF using the iRule. Here is an example:
when HTTP_REQUEST {
if { [HTTP::uri] ends_with "end_of_interesting_url" } {
set match 1
}
}
when REWRITE_REQUEST_DONE {
if { [info exists match] } {
REWRITE::post_process 1
}
}
when REWRITE_RESPONSE_DONE {
if { [info exists match] } {
unset match
set sid [ACCESS::session sid]
set from {org_url}
set to {https://APM+VS/f5-w-hexencoded_backend_host/org_url_path}
set pos [string first $from [REWRITE::payload]]
if { $pos > 0 } {
log local0. "Patching unpatched uri to $to"
set len [string length $from]
REWRITE::payload replace $pos $len $to
}
}
}