Notifications

22 views

Symptoms

GlideSystem (gs) functions like gs.info(), gs.log(), gs.debug() present in a script do not work when its called by a filter/dynamic filter.

Cause

This is because of the script sandboxing feature of High Security Settings plugin. Any script executed from a filter is sandboxed for security purposes.

Only a small subset of GlideSystem (gs) methods are available in this context. The GlideSystem sandbox does not have access to the following methods: 

- gs.info
- gs.debug
- gs.addInfoMessage
- gs.addErrorMessage

The following three methods do exist in the GlideSystem sandbox but are disabled/blocked by default.

- gs.logError
- gs.logWarning
- gs.log

Resolution

To enable/unblock the below methods in the GlideSystem sandbox, the value of system property "glide.security.sandbox_no_logging" can be updated to "false". 

- gs.logError
- gs.logWarning
- gs.log

Article Information

Last Updated:2019-06-27 06:10:40
Published:2019-06-26