Access Gateway: “Corrupted Content Error” when using FF7 or higher
October 6, 2011 10 Comments
“Corrupted Content Error” when logging on to a Citrix Access Gateway Enterprise/Web Interface for NetScaler with Mozilla Firefox 7 or Higher
I’m not yet sure if this is a Citrix issue or a Firefox issue since this problem occurs with a lot more websites with the new Firefox versions. On Citrix Access Gateway Enterprise it seems to occur when using Citrix Access Gateway Enterprise (NetScaler) and Citrix Web Interface for NetScaler (have not yet tested with Web Interface for Windows). Apparently Firefox does not like the fact that either the header Content-Length and/or Content-Disposition values change when passing from the Access Gateway to the Web Interface.
Firefox says web developers need to change there code, I have submitted a support case with Citrix Tech Support. Will let you know what the outcome will be for those interested.
Update: Citrix has confirmed this issue and is working on a solution which will be resolved in the next Citrix NetScaler firmware release. This is not a bug but a “security enhancement” from Firefox.
Update: Citrix Tech Support provided a temporary solution for this problem, copy and paste the rewrite action and policy into an SSH session and bind it globaly.
add rewrite action ReplaceContentLengthZeroHeader_act replace “HTTP.RES.FULL_HEADER.REGEX_SELECT(re!Content-Length: 0!)” “\”Cotnent-Length: 0\””
add rewrite policy ReplaceContentLengthZero_pol “HTTP.RES.STATUS.EQ(302) && HTTP.RES.FULL_HEADER.REGEX_MATCH(re!Content-Length: 0!) && HTTP.RES.FULL_HEADER.REGEX_MATCH(re!Location: .*/login.jsp!)” ReplaceContentLengthZeroHeader_act
bind rewrite global ReplaceContentLengthZero_pol 10 END -type RES_DEFAULT