Wolle Posted January 22, 2008 Share Posted January 22, 2008 Hello, I'm trying to view a report direct via url In the following example the login component does not works. http://myserver/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/myFolder/myReport&decorate=no&output=pdf&myParameter1=100&myParameter2=200&j_acegi_security_check?&j_username=jasperadmin&j_password=myPwd After call the server creates an access denied exception (org.acegisecurity.AccessDeniedException). Without the login component the call works correct when the user is logged in. Do anybody know something about this problem. Thanks for help WollePost edited by: Wolle, at: 2008/01/22 12:48 Link to comment Share on other sites More sharing options...
alex.chan Posted January 24, 2008 Share Posted January 24, 2008 Wolle You could modify the acegi setting in applicationContext-security.xml to specify the viewReportFlow to accept anonymous access. You can put the reports in certain folder and set the ROLE_ANONYMOUS to have read access to this folder. For reports outside this folder, users need to log in first. -Alex Link to comment Share on other sites More sharing options...
Wolle Posted January 24, 2008 Author Share Posted January 24, 2008 Hi Alex, thank you for your response. Witch "bean id" do you mean? When I modify the setting flow.html in the bean filterInvocationInterceptor as follows a login insn't no more possible. This entry doesn't work: <bean id="filterInvocationInterceptor" ...... /flow.html=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMINISTRATOR... Please tell me the correct position, which must modify to get access as anonymous. Thanks Wolle 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