Error when trying to call ServerReportCtl.runJasperProcess with a process info without a transaction name
Description
When you try to run the ServerReportCtl.runJasperProcess method with a process Info that has no transaction name as a parameter. You get the following error
The line that throws the error has a condition that allows null if there’s no processInfo, so the trx is not mandatory. It makes no sense to fail then if the pi does not have a trx
ServerProcessCtl.process(jasperProcessInfo, pi != null ? Trx.get(pi.getTransactionName(),false) : null);
This was discovered while using the REST plugin, calling the printTabRecord endpoint with a jasper report. The server returns an error
When you try to run the ServerReportCtl.runJasperProcess method with a process Info that has no transaction name as a parameter. You get the following error
The line that throws the error has a condition that allows null if there’s no processInfo, so the trx is not mandatory. It makes no sense to fail then if the pi does not have a trx
ServerProcessCtl.process(jasperProcessInfo, pi != null ? Trx.get(pi.getTransactionName(),false) : null);
This was discovered while using the REST plugin, calling the printTabRecord endpoint with a jasper report. The server returns an error