JMIX Version 2.7.5 Error displaying pdf document generated with reports add-on

Hi,

In production mode, runAndShow function of the uiReportRunner interface displays PDF as raw binary/compressed data instead of readable text in the browser.

Jmix Studio Premium 2.7.5
IntelliJ IDEA 2025.3.3

Thanks in advance,

PDFError

Hi

There is really a problem with the uiReportRunner.

If you run the actual jmx-crm from GitHub which is version 2.7.4, go to Invoices, select 1 invoice and download this invoice, you get a nice new tab with the invoice.

Now you update this project to version 2.7.5 and do the same; there is no invoice displayed and system offers a download of [GUID] file without any file extension.

One of my application with

uiReportRunner.byReportEntity(report)
   .withOutputType(ReportOutputType.PDF)
   .withParametersDialogShowMode(ParametersDialogShowMode.NO)
   .addParam("Account", account) //  Parameter alias
   .addParam("dateFrom", dateFrom)
   .addParam("dateTo", dateTo)
   .addParam(JRParameter.REPORT_LOCALE, getLocale())
   .runAndShow();

does the same; instead of opening a pdf with the defined filename, the user get a strange file download.

I think, before you distribute this version, this really should be repared.

Regards
Felix