cancel
Showing results for 
Search instead for 
Did you mean: 

BIGIP throws syntax error for iRule upon upgrading f5 to 12.x for below : set given_context_path [string trimright [URI::path [HTTP::uri] 1 1] "/"]

Atul_Kumar
Nimbostratus
Nimbostratus

BIGIP throws syntax error for iRule upon upgrading f5 to 12.x for below :

 

set given_context_path [string trimright [URI::path [HTTP::uri] 1 1] "/"]

 

The below warnings logged in BIGIP seems to be occurring as F5 has been upgraded from version 11.x to 12.x, which doesn't support the syntax used in previous version. Prior to 12.0.0 there were no restrictions to the values of the arguments specified. However, In 12.x version, JET validator engine has been introduced which performs more stringent iRules syntax validation by using JET files during configuration load. 

 

warning: [The following errors were not caught before. Please correct the script in order to avoid future disruption. "end value (1) not greater than start value (1)"193 25][URI::path [HTTP::uri] 1 1]

 

It looks like the form of URI::path with same start and finish values is set to be deprecated in a future release, and while the parser is allowing it now, it's warning about this usage.

 

Could you please suggest me the correct syntax for this.

1 ACCEPTED SOLUTION

Simon_Blakely
F5 Employee
F5 Employee

The validation warning has been removed in 14.x

 

Bug ID 699076: URI::path iRules command warns end and start values equal

 

Just ignore it for now.

View solution in original post

2 REPLIES 2

Simon_Blakely
F5 Employee
F5 Employee

The validation warning has been removed in 14.x

 

Bug ID 699076: URI::path iRules command warns end and start values equal

 

Just ignore it for now.

Thank you for all your assistance, I really appreciate your help in resolving the problem.