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

Last Modified: May 07, 2019

Bug Tracker

Affected Product:  See more info
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.1, 13.1.1.2, 13.1.1.3, 13.1.1.4, 13.1.1.5

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

None

Behavior Change