When performing custom authentication on JasperReports Server, that simply bypass the "normal" login screen, performing pre (sso) authentication (and bypassing the normal login form); I observed errors when using "Login as User". When selected the Login as User button, it does nor work, caused by Java Script Errors
Error with FireFox:
TypeError: orgModule.roleManager.actionFactory is undefined
Error with IE:
SCRIPT5007: Unable to get property 'login' of undefined or null reference
org.role.mng.main.js, line 28 character 5
From what o have observed, it seems that the login as user feature, depended on parameter "j_username", that if its not set causes the reported error.
The login as user, should use the username from authenticated user, and should not depend on parameters sent from login from