Issue
Symptoms
Users are getting an error "Illegal attempt to access class 'com.glide.sys.GlideLocale' via script" when utilizing filters on a list or viewing a report.
Release
All releases
Cause
Caused by one or more sys_choice record that has Label that make use of "Packages.com.glide.sys.GlideLocale" call.
For example:
Label: javascript:'System (' + Packages.com.glide.sys.GlideLocale.get().getCurrent().getCountry() + ')'
Resolution
1) Navigate to sys_choice.list and find any Label that contains "Packages.com.glide.sys.GlideLocale"
2) For the records that are returned from the search above, replace "Packages.com.glide.sys.GlideLocale" with just "GlideLocale"
For example from:
javascript:'System (' + Packages.com.glide.sys.GlideLocale.get().getCurrent().getCountry() + ')'
To:
javascript:'System (' + GlideLocale.get().getCurrent().getCountry() + ')'
The use of "Packages.com.glide.sys.GlideLocale" is no longer allowed and hence the error message being thrown.