Did you know, that ACL scripts are running even the advanced flag is set to false?!?!?!!!!

Zod
Giga Guru

After got trapped by an ACL that did do something I was not expecting ... I found out, that the script in the acl was executed even the advanced flag set to false.

As this is a true/false field and not an ui action to show/not show the script, this is absolutely not what I expected and none of my peers knew this.

Also the ServiceNow Support was obviously not aware of it ....

Developement Statement:

"..., the developer has confirmed that this is an expected behavior. The Advanced checkbox just controls the visibility of the script field. At the time of ACL execution, we check the script field. If it is populated, we will execute it as part of the ACL evaluation.

utely"

From my point of this is critical .. especially as we are talking about ACLs! And for sure not consistent ... and somehow servicenow more and more starts to look like cobbled solutions like Martix or HP ...

Not a good developement from my point of view ;-(

17 REPLIES 17

Perhaps you are reading and interpreting it differently than I.



To me...the advanced boolean doesn't mean to use it or not...to me it's to show you the advanced options/scripting window...doesn't mean to disable it completely.



By default, the script that's there shouldn't do anything or cause any issues.



if you script something, then leave it all sitting there without commenting it out, then uncheck the advanced options checkbox thinking it's just magically gone...is wrong.



But that's my interpretation.



Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

ok - then check the ui policies.


Why they use a ui action there AND a field making clear if the script is running or not (run script - true/false).



I somehow would expect the plattform to have the user experiance all over ... but like with the translations (there it is even much worse) ... it look like there are no quality review taking care of this ...


Unless I'm missing something completely...the UI policy that you're referring to there is the show the scripting window or not and the Run scripts...means to run that specific script in the UI policy...



At this point, I doubt we'll agree on any of this....you should submit something to SN and have them review if that's your intentions here, but I don't see anything wrong.



Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

That is right. But the way it behaves is different.



It should be hidden behind another Dialog with all of i's Options. And all of the advanced Options should be under the same Dialog.


This way you would know it is still there and it is just invisible


OMG ... yes .. the same for Business Rules!!!


I don't believe this ...


This is nonsense .... . Sorry.


This is something they should tell in the Administrator certification ...