Jump to content
We've recently updated our Privacy Statement, available here ×

View a report direct via url


Wolle

Recommended Posts

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

 

 

Wolle

Post edited by: Wolle, at: 2008/01/22 12:48

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...