Bug ID 717330: Portal Access: server-side JavaScript parser supports shorthand for 'a:a' assignments in object literals.

Last Modified: Oct 16, 2023

Affected Product(s):
BIG-IP APM(all modules)

Known Affected Versions:
13.1.0, 13.1.0.1, 13.1.0.2, 13.1.0.3, 13.1.0.4, 13.1.0.5, 13.1.0.6, 13.1.0.7, 13.1.0.8, 13.1.1, 13.1.1.2, 13.1.1.3, 13.1.1.4, 13.1.1.5, 13.1.3, 13.1.3.1, 13.1.3.2, 13.1.3.3, 13.1.3.4, 13.1.3.5, 13.1.3.6, 13.1.4, 13.1.4.1, 13.1.5, 13.1.5.1

Fixed In:
14.1.0

Opened: Apr 27, 2018

Severity: 4-Minor

Symptoms

Portal Access cannot correctly handle JavaScript with shorthand properties in object literals on the server-side. Modern JavaScript supports shorthand for 'a:a' assignments in object literals, for example: var A = { a }; This is a short variant of equivalent full definition: var A = { a : a }; Portal Access reports a syntax error at shorthand object literal definitions.

Impact

Web application may not work correctly.

Conditions

JavaScript with shorthand definitions in object literals, for example: var A = { a };

Workaround

Use iRule to replace shorthand definitions by full ones.

Fix Information

Now Portal Access can handle JavaScript with shorthand properties in object literals correctly at server-side.

Behavior Change

Guides & references

K10134038: F5 Bug Tracker Filter Names and Tips