[#3125] - setReportParameters method of com.jaspersoft.jasperserver.api.engine.scheduling.domain.ReportJob.java does nothing if source is not set yet

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Minor
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

It is silently ignored and no exception is thrown if the job source is not set yet but we try to set report job parameters.
As a result job parameters are empty.

here is the source code:

public void setReportParameters(Map<String, Object> values) {
ReportJobSource jobSource = this.getSource();
if (jobSource != null) {
Map<String, Object> parameters = jobSource.getParameters();
if (parameters != null) {
parameters.putAll(values);
} else {
jobSource.setParameters(values);
}
}
}

v5.0
stasal's picture
40
Joined: Aug 14 2012 - 7:55am
Last seen: 4 years 6 months ago
Feedback