Milan_4483
May 18, 2012Nimbostratus
Business objects / SAP error in IE due to irule
Issue: When users go the website and browse to their excel report, right click and select view, it throws an Error in IE. The error does not exist in Chrome/Firefox.
Currently we have the following irule applied to convert HTTP to HTTPS
when HTTP_REQUEST {
HTTP::respond 301 Location https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
SAP Support has provided the following irule to fix the problem
when HTTP_RESPONSE {
STREAM::disable
if {[HTTP::header exists "Cache-Control"]}
{
if {[HTTP::header "Cache-Control"] equals "no-cache"}
{
HTTP::header replace "Cache-Control" "max-age=0, must-revalidate"
}
}
if {[HTTP::header exists "Pragma"]}
{
HTTP::header remove "Pragma"
}
if {[HTTP::header exists "Content-Disposition"]}
{
set fn "[findstr [HTTP::header "Content-Disposition"] "filename=" 9]"
set cp "[substr [HTTP::header "Content-Disposition"] 0 ";"]"
log local0. "FILENAME OUTSIDE= $fn"
log local0. "CON-DISP TYPE= $cp"
if {not($fn equals "")}
{
if {[HTTP::header exists "Cache-Control"]}
{
HTTP::header replace "Cache-Control" "max-age=0, must-revalidate"
}
if {[HTTP::header exists "Pragma"]}
{
HTTP::header remove "Pragma"
}
log local0. "FILENAME SEEN = $fn"
if {$fn contains ".xls"}
{
HTTP::header replace "Content-Type" "application/vnd.ms-excel"
HTTP::header replace "Content-Type" "application/pdf"
}
}
if {[HTTP::header "Content-Type"] contains "text/html"}
{
STREAM::expression "@http:@https:@ @:9085@@"
STREAM::enable
}
}
}
Need Help With - When we just use the irule provided by SAP, the site coversion from HTTP to HTTPS does not happen. Need help with incorporating the irule provided by SAP to our existing irule.
Thanks in advance.