We’ve recently tried to add a global standard redirect on a 6400 running 9.4.6 401.0 as follows:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
When we attempt to sync with the failover box, we get:
BIGpipe parsing error (Line 1960):
012e0021:3: The requested attribute () for ‘rule’ is invalid.
Upgrading another pair to 9.4.7 seemed to fix this error but we’re wondering if there is a simple syntax difference between versions that would validate this rule prior to upgrading our older production boxes.
In 9.4.7, CR85806 was fixed. A search for 012e0021 and rule returns:
SOL7988: The iRule parser may fail to correctly parse and load an iRule from the command line
The solution title isn’t as accurate as it could be, but the issue is that the // in https:// wasn’t wrapped in quotes. The simple fix is to use HTTP::redirect “https://[HTTP::host][HTTP::uri]”.
Appreciate the advise! Didnt see this solution when using askF5. Make sense after birefing iRule_Optimization101. We will try this solution and post the results.
The fix worked exactly as posted. The caveat is we’ll have to verify functionality in version 9.4.7, but I suspect the application of literal interpritatoin will be compatable. Again, thanks for your hellp!