One of my users had two subreports that were in the
same directory as the parent report. However, when
JasperReports via OpenReports tried to load the
subreport, it looked for filename "subReport.jasper"
with no directory rather than the same directory as the
parent report, and so could not find it.
To solve this, I followed the same pattern you used for
OPENREPORTS_REPORT_DIR to allow image references. (so
it is a tiny patch)
So now the parent report looks like:
<reportElement positionType="Float" x="0" y="4"
width="799" height="93" isPrintWhenDetailOverflows="true"/>
I know this problem can also be solved by passing the
subreports in as explicit parameters, but I think it is
worth supporting this approach as well, particularly
for reports with many subreports.