GlideTransaction.get().response.sendRedirect broken in Jakarta / sendRedirect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2017 01:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2018 01:05 AM
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 !
