NullPointerException during Custom Auth Service session
Following successful completion of custom Authentication Service (SSO), any interaction that requires a new Thread that requires to be created on the Clipboard fails to add the OperatorID page to that Thread. This results in a NullPointerException being thrown when the Code-Security. ApplicationSetup activity runs, as it assumes the existence of the OperatorID page on the current Thread.
Steps to Reproduce
1. Create the necessary artifacts and configuration for a custom authentication service.
2. Authenticate the user successfully using the authentication service.
3. Attempt to perform interactions within the Standard thread (open Profile, open Preferences, open Clipboard Viewer) - these execute successfully
4. Attempt to perform interactions that require a new Thread to be created on the clipboard, the error occurs
In custom authentication activity, this issue occurs if you referring to OperatorID page, which is creating OperatorID page at STANDARD thread level.
Because of the changes made to findPage() API in ML7, requestor.getPage() returns page even if it exists at PRThread level, instead of creating new page at requestor level.
Authentication Activity – and the activities and rules that it invokes – must not attempt to reference properties from the “OperatorID” page.
No OperatorID page must exist on the clipboard (at any scope) during the execution of an Authentication Activity. In this case, a Data Transform is referencing properties on OperatorID during the Authentication Activity execution, resulting in the page being created on the Thread scope before completion of the Authentication process. This affects the ability to make the OperatorID page available to new Threads within an otherwise successfully created session, causing the NullPointerException in ApplicationSetup.
0% found this useful