f5-appsvcs-extension
f5-appsvcs-extension copied to clipboard
Irule parsing error when multiple irules are passed in AS3 declaration
Environment
- Application Services Version: 3.54.1
- BIG-IP Version: 17.1
Summary
Getting parsing error http://admin:XXXXXX@localhost:8100/mgmt/tm/sys/config merge cli script response=400 body={"code":400,"message":"Can't parse script, missing close-brace line:0","errorStack":[],"apiError":26214401} when AS3 declaration contains multiple irules content. Not getting any issue when tried the same declaration with AS3 3.52 version.
Steps To Reproduce
Steps to reproduce the behavior:
-
Submit the following declaration first which is posted successfully: as3-post1.json
-
And then append other app with irule to the existing declaration: as3-post2.json
-
Observe the following error response:
{
"code": 400,
"message": "declaration failed",
"response": "POST http://admin:XXXXXX@localhost:8100/mgmt/tm/sys/config merge cli script response=400 body={\"code\":400,\"message\":\"Can't parse script, missing close-brace line:0\",\"errorStack\":[],\"apiError\":26214401}",
"host": "localhost",
"tenant": "test",
"runTime": 3790,
"declarationId": "urn:uuid:85626792-9ee7-46bb-8fc8-4ba708cfdc1d"
}
Expected Behavior
AS3 declaration should posted successfully with status 200.
Actual Behavior
Getting error "POST http://admin:XXXXXX@localhost:8100/mgmt/tm/sys/config merge cli script response=400 body={"code":400,"message":"Can't parse script, missing close-brace line:0","errorStack":[],"apiError":26214401}" on posting the declaration with AS3 3.54. No issue observed with 3.52
I would suggest to encode every iRule in Base64.
Can you please try it with As 3.53
@sunitharonan Didn't observed the issue with AS3 3.53
I would suggest to encode every iRule in Base64.
I can agree only. It's the best practice.