jneale / Xplore

Xplore: Developer Toolkit for ServiceNow
MIT License
197 stars 147 forks source link

Scoped script execution is not working in Xanadu release #88

Open ZOACMACK opened 1 month ago

ZOACMACK commented 1 month ago

After uprading an instance to Xanadu release, the execution of scripts within an application scope (not global) is not working anymore.

When executing any script, the "Output" will always be null. image

This is probably caused by a change in the security logic of GlideScopedEvaluator, but for which I couldn't find an official note in the Xanadu release notes - still, the logic behind definitely changed.

As it seems, the instance will now not allow to dynamically override the associated scope (sys_scope) of a GlideRecord anymore before the GlideRecord is passed to GlideScopedEvaluator.evaluateScript(). This technique is currently used to execute scripts in another scope by Xplore within /src/Processors/snd_xplore.js at line 572-585. Thus, this is now not working anymore.

jneale commented 1 month ago

Thanks for raising the issue. I have seen this and have a fix coming out shortly.

dhubbard-ag commented 2 weeks ago

Hi, any update on this?

Dor7123 commented 1 week ago

+1, love xplore, shame it's broken now for scoped apps on xandau