f5-appsvcs-extension icon indicating copy to clipboard operation
f5-appsvcs-extension copied to clipboard

Irule parsing error when multiple irules are passed in AS3 declaration

Open vidyasagar-m opened this issue 6 months ago • 3 comments

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:

  1. Submit the following declaration first which is posted successfully: as3-post1.json

  2. And then append other app with irule to the existing declaration: as3-post2.json

  3. 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

vidyasagar-m avatar May 27 '25 05:05 vidyasagar-m

I would suggest to encode every iRule in Base64.

seamlessfirework avatar May 27 '25 05:05 seamlessfirework

Can you please try it with As 3.53

sunitharonan avatar Jun 05 '25 15:06 sunitharonan

@sunitharonan Didn't observed the issue with AS3 3.53

vidyasagar-m avatar Jun 06 '25 15:06 vidyasagar-m

I would suggest to encode every iRule in Base64.

I can agree only. It's the best practice.

mkyrc avatar Sep 17 '25 07:09 mkyrc