steveschils Posted February 15, 2017 Share Posted February 15, 2017 Hello,I have the following problem met Jasperserver Community 6.3.We want to migratie our reports from Jasperserver 5.5 to the new 6.3 version. Import and export functionality works well, so we can run the reports in the new Jasperserver 6.3 environment.However: We have an application that runs the reports directly , with a form and HTTP POST parameters (mainly to not export de parameters in the requested urls)This works great in Jasper5.5 , but it does not work anymore in Jaspserver 6.3 . We get a username / password page.When we link to the report via HTTP GET request url it works however.Can anyone help me with this ? Rewriting the application is not an option because we call a lot of different reports.ThxSteve Link to comment Share on other sites More sharing options...
markus.deindl Posted February 15, 2017 Share Posted February 15, 2017 This has already been answered many times.Just add &j_username=[username]&j_password=[password] at the end. Link to comment Share on other sites More sharing options...
steveschils Posted February 15, 2017 Author Share Posted February 15, 2017 Ok I Know but this was not my question..&j_username=[username]&j_password=[password] in the url, thus via HTTP get parameters works.for example : http://jasper.local/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/Reports/incidents&ParentFolderUri=/Reports/¶m1=1&decorate=no&output=pdf&j_username=joeuser&j_password=joeuserThis url works.But Till now jasperserver also worked with an http post , like code this below<html> <body onload="document.forms[0].submit()"> <form name="pop_up" method="post" action="http://jasper.local/jasperserver/flow.html"> <input type="hidden" name="reportUnit" value="/Reports/incidents"> <input type="hidden" name="ParentFolderUri" value ="/Reports/'> <input type="hidden" name="param1" value="1"> <input type="hidden" name="_flowId" value="viewReportFlow"> <input type="hidden" name="decorate" value="no"> <input type="hidden" name="j_username" value="joeuser"> <input type="hidden" name="j_password" value="joeuser"> <input type="hidden" name="output" value="pdf"> <input type="submit" name="OK" value="OK"> </form> </body></html>[/code]and this does not seem to work anymore. I justs gives the login page. With Jasperserver 5.5, it works.UPDATE * I found the solution myselftin the form I now use method="get" instead of post and then it works Link to comment Share on other sites More sharing options...
Solution steveschils Posted February 15, 2017 Author Solution Share Posted February 15, 2017 Solved it... I just modified post with get in the form and now it works...<form name="pop_up" method="get"..... 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