1
0
-1

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

    CommentAdd your comment...

    6 answers

    1.  
      1
      0
      -1

      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

      1. Andrew

        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.

      CommentAdd your comment...
    2.  
      1
      0
      -1

      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.


        CommentAdd your comment...
      1.  
        1
        0
        -1

        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.

          CommentAdd your comment...
        1.  
          1
          0
          -1

          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

            CommentAdd your comment...
          1.  
            1
            0
            -1

            I added testing app to fist post

              CommentAdd your comment...
            1.  
              1
              0
              -1

              Hi

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

                CommentAdd your comment...