Forum Discussion

Rudi_95802's avatar
Rudi_95802
Icon for Nimbostratus rankNimbostratus
Jul 26, 2010

Possible Bug?

Urgent help required Please. I'm using the BigIp to serve a fallback page. It works like a charm when the iRule is applied from within the GUI. But after when I make vi changes to my bigip.conf the Irule applied within the GUI gives the following error when I "b load". " BIGpipe parsing error (Line 1085): 012e0021:3: The requested attribute () for 'rule' is invalid."

 

 

I've isolated the problem to the hyperlink href. In editor mode BigIP doesn't like the http in the link. If I remove the http the new config can be loaded successfully. See Irule below. I'm really desperate. Defining the HTML as a class gives the same result.

 

 

 

I've attached the iRule.

 

 

Kind Regards

 

VAN

8 Replies

  • Hi Van,

     

     

    The attachment isn't showing. Can you confirm you've uploaded and attached it to the post?

     

     

    Else, try posting the relevant section of the iRule in [ code ] [/ code ] blocks (without the spaces in the tag name).

     

     

    Aaron
  • My apology, lost the attachment somehow.

    when RULE_INIT {
    set ::sorry {This site is temporarily not available. If you would like to validate whether this is planned downtime, please click on the xxxx Logo}}
    when HTTP_REQUEST {
  • Sorry this is the complete rule

    when RULE_INIT {
    set ::sorry {This site is temporarily not available. If you would like to validate whether this is planned downtime, please click on the xxxx Logo}}
    when HTTP_REQUEST {
    if {[active_members pool_sharepoint_sorrytest] == 0}{
    switch [string tolower [HTTP::path]] {
    /error/image.jpeg {
    HTTP::respond 200 content [b64decode [lindex $::sorrypage 0]] "Content-Type" "image/jpeg"
    }
    default {
    HTTP::respond 200 content $::sorry
    }
    }
    }
    }
  • And I forgot to ask, which LTM version are you running?

     

     

    Aaron
  • My Apologies yet again. Been one of those days.

     

     

    We're running 9.4.3 Build 1.4 Final

     

     

    Kind Regards

     

    Van
  • I tested on 9.4.8 and couldn't reproduce the issue. But there have been a lot of parser issues that are only seen when running 'b load' as opposed to saving an iRule. For this specific issue, it looks like it's been fixed between 9.4.3 and 9.4.8. It would be good for you to upgrade to fix this and many other issues. In the meantime, can you try this for the sorry HTML:

    set ::sorry "This site is temporarily not available. If you would like to validate whether this is planned downtime, please click on the xxxx Logo"
    

    Aaron
  • The forums are munging the code block. The basic idea I was trying to suggest was to remove the outer curl braces from the ::sorry variable value and remove the inner double quotes:

     

     

    set ::sorry "< html >< a href=http://xxxxx.xxx.xxx:8089/PlannedChanges/ >< img src=/error/image.jpeg border=0>< /a >< /head >< body >< p >This site is temporarily not available. If you would like to validate whether this is planned downtime, please click on the xxxx Logo< /p >< /body >< /html >"

     

     

    I've added spaces in each of the < tags >, so remove those or just make the changes manually to your code to replace the outer curl braces with double quotes

     

    and remove the inner double quotes.

     

     

    Aaron

     

  • Thanks for the incredible rapid feedback Aaron!!! Will try it quickly otherwise upgrade. Will let you know!

     

     

    VAN