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

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created September 15, 2023 at 11:38 AM
Updated November 1, 2023 at 11:07 AM
Resolved September 15, 2023 at 1:16 PM