Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

GlideTransaction.get().response.sendRedirect broken in Jakarta / sendRedirect

jean-lucchatton
Kilo Guru

Hello,

Our instance uses a couple of GlideTransaction.get().response.sendRedirect() calls. It was ok on Helskinki version but is broken on Jakarta.

We receive the following error message "Attempted script access to inaccessible member denied - com.glide.sys.Transaction:getResponse:()Ljavax/servlet/http/HttpServletResponse;

Evaluator: java.lang.SecurityException: Illegal access to method getResponse in class com.glide.sys.Transaction".

I've looked in the community forum and find that this API was not documented. Therefore ServiceNow has certainly decided to change something or decided to restrict his usage.

Any idea how to get the same functionality ?

Thanks and regards

Jean-Luc

15 REPLIES 15

Hichem
Mega Expert

Hi,



Ok, then following ServiceNow HI, no way to replace this "GlideTransaction.get().response.sendRedirect" because of   Restricted Security, means that API calls to redirect user to a page no longer works in current version (Jakarta)...



the best workaround that I've found for the moment is the use of the system property "glide.entry.loggedin.page_ess"



hope this can help !