Jasper report download pdf show blank page if that Jasper report form is in hidden section

Confluence User - 19 Feb, 2020

This might be a bug in Joget DX 7 Enterprise edition RC. It works fine if that Jasper report form is not hidden. The same app works in Joget 6.

I want to fire a bug report but not sure how to because I'm just start learning howto use Joget.


Below is a simple test app, you can go to list page, click View/View (hidden) then PDF download link. Download in report within hidden category show blank page

APP_test-1-20200221091243.jwa

jasper

7


19 Feb, 2020
confluenceUser
confluenceUser

Hi

Kindly attach as small sample app with the jasper report so we can try it out.

21 Feb, 2020
confluenceUser
confluenceUser

I added testing app to fist post

20 Mar, 2020
confluenceUser
confluenceUser

Hi there. I confirm the issue.

When using the direct link to pdf jasperReport (example: http://localhost:8080/jw/web/json/plugin/org.joget.plugin.enterprise.JasperReportsMenu/service?action=report&menuId=DailySummary&appVersion=1&userviewId=home&key=_&appId=1&type=pdf)

It does not work if the corresponding JasperReportsMenu is in a hidden userview menu section

Issue did not exist in Joget V6

01 Apr, 2020
confluenceUser
confluenceUser

I come back to test this again today. This issue is still happen in DX7 stable version. 

I also test this simple app in Joget cloud and the problem happen there too. So I think this is a bug in DX7. You cannot download PDF if it is in hidden category in userview.

01 Apr, 2020
confluenceUser
confluenceUser

Hi

Pasting the Jasper PDF link into a new browser tab will actually generate a CSRF error.

Here are your options:

  1. Add an * (asterisk character) or domain name into the API Domain Whitelist property setting in "General Settings" to allow the external link permission to display the Jasper PDF. For example, use this option if you are hyperlinking from an email.
  2. Add the Jasper PDF as a menu or hyperlink within your Joget app and the PDF page display will work well. It this case, the CSRF error will not be triggered as it is in internal call within Joget and you do not need to update the API Domain Whitelist property.


01 Apr, 2020
confluenceUser
confluenceUser

Andrew, Thanks for point out about API white list. but it doesn't solve the problem.

Here is more detail about my problem

My app works fine in Joget v6. So I try to import it to Joget DX7. After testing, I found that I cannot download PDF from Jasper report pdf view form. So I setup a simple app to test what went wrong with these step

  1. Create new app then add a Form, a List and a UserView
  2. I use a form and list to create List view page and put view ( also add view (hidden) for testing ) link

3. 2 links above point to Jasper report in UserView. Link number 1 works fine and I can download pdf file in pdf view page. But from link number 2 which point to JasperReports number 2, I can view report page but download pdf button in that page give me a blank page. And the problem solved if I just set "Hide From Menu" off. But for most use-case, I want to left any JasperReports in hidden category section. User can access it form list page. It also need parameters to get proper data associate with that record to display.

4. Below is the JasperReport page and the download PDF link that work only in not-hidden Category


I'll continue with v6 until this problem is solved. Here is my test on Joget cloud https://artitp.cloud.joget.com/jw/web/userview/test/view/_/61F65DFDDEC3433BB19CF7DFA2910C1C

01 Apr, 2020
confluenceUser
confluenceUser

Hi Artit Pukprasit

Thank you for your detail explanation. The Jasper Report in a hidden menu category is a bug and will be fixed in the next Joget DX build.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print