cancel
Showing results for 
Search instead for 
Did you mean: 

Rewrite issue with Portal Access

Squeak
Cirrus
Cirrus

Hello,

 

I´ve a rewrite issue with a internal webpage that I´m publishing with Portal Access. The APM module adds "F5CH=I" to the image path and "F5CH=C" to the css path.

 

 styles.css?F5CH=C  /images/icon-search.png?F5CH=I

 

I found out that this is a known bug and I created an IRule to fix it.

 

when HTTP_REQUEST {   set wtType [ACCESS::session data get session.policy.result.webtop.type]   if {[ info exists wtType ] && $wtType == "full" } {     if { !([HTTP::uri] starts_with "/f5-w") && ([HTTP::uri] contains "styles") && ([HTTP::uri] contains "/images")  } {        log local0. "===>  Before ====> [HTTP::uri] "        HTTP::uri "/f5-w-MASKED_HEX$$[HTTP::uri]"        log local0. " Corrected ====> [HTTP::uri] "     }   }   unset wtType }

 

But without any success.

 

Any suggestions what I´m missing?

 

0691T000005mGEyQAM.png

1 REPLY 1

Hi Squeak,

 

I think, you should use "||" operator instead of "&&" operator

when HTTP_REQUEST { set wtType [ACCESS::session data get session.policy.result.webtop.type] if { [info exists wtType] && $wtType == "full" } { if { (not ([HTTP::uri] starts_with "/f5-w")) && (([HTTP::uri] contains "styles") || ([HTTP::uri] contains "/images")) } { log local0. "====> Before ====> [HTTP::uri] " HTTP::uri "/f5-w-MASKED_HEX$$[HTTP::uri]" log local0. "Corrected ====> [HTTP::uri]" } } unset wtType }