usmansaleem Posted August 17, 2010 Share Posted August 17, 2010 Based on various forum topics, I have modified following files to enable anonymous access to reports: File: /webapps/jasperserver/WEB-INF/applicationContext-security.xml Changes: 1. bean flowVoter. Added line: viewReportFlow=ROLE_USER,ROLE_ADMINISTRATOR,ROLE_ANONYMOUS 2.bean filterInvocationInterceptor. Modified: /flow.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /fileview/**=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /reportimage/**=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /jrpxml/**=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR /fillparams.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR File: /webapps/jasperserver/WEB-INF/applicationContext-events-logging.xml Changes: bean accessContext. Added Line: <property name="userAuthorityService" ref="${bean.userAuthorityService}"></property>The reports without any parameters work fine. However, for parameterized reports, a NullPointerException by CascadeDirector is thrown. Need pointers on how to fix this behavior please.Code:2010-08-18 01:01:19,851 WARN DefaultRemoter,http-8080-15:67 - Method execution failed: java.lang.NullPointerException at com.jaspersoft.jasperserver.war.cascade.CascadeDirector.initialize(CascadeDirector.java:40) at com.jaspersoft.jasperserver.war.cascade.CascadeDirector$$FastClassByCGLIB$$cb78188c.invoke(<generated>) Link to comment Share on other sites More sharing options...
usmansaleem Posted August 22, 2010 Author Share Posted August 22, 2010 Bumping ... any ideas? Link to comment Share on other sites More sharing options...
ramnik Posted August 23, 2010 Share Posted August 23, 2010 can u please tell whoich version of Jasperserver are u using ?thanks Ramnik KaurSenior QA Engineer Link to comment Share on other sites More sharing options...
usmansaleem Posted September 1, 2010 Author Share Posted September 1, 2010 Hi Ramnik,JasperServer CE 3.7.0Regards,Usman SaleemP.S. Sorry for late reply, I somehow didn't got email notification of the reply to the post.Post Edited by usmansaleem at 09/01/2010 06:52 Link to comment Share on other sites More sharing options...
usmansaleem Posted September 7, 2010 Author Share Posted September 7, 2010 Bumping again... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now