mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Move check forˆ 404 for unknown report name
This commit is contained in:
@ -178,6 +178,12 @@ public class QJavalinProcessHandler
|
|||||||
String reportName = context.pathParam("reportName");
|
String reportName = context.pathParam("reportName");
|
||||||
String format = context.queryParam("format");
|
String format = context.queryParam("format");
|
||||||
|
|
||||||
|
QReportMetaData report = QJavalinImplementation.qInstance.getReport(reportName);
|
||||||
|
if(report == null)
|
||||||
|
{
|
||||||
|
throw (new QNotFoundException("Report [" + reportName + "] is not found."));
|
||||||
|
}
|
||||||
|
|
||||||
ReportFormat reportFormat = QJavalinImplementation.getReportFormat(context, optionalFilename, format);
|
ReportFormat reportFormat = QJavalinImplementation.getReportFormat(context, optionalFilename, format);
|
||||||
if(reportFormat == null)
|
if(reportFormat == null)
|
||||||
{
|
{
|
||||||
@ -198,12 +204,6 @@ public class QJavalinProcessHandler
|
|||||||
reportInput.setInputValues(null); // todo!
|
reportInput.setInputValues(null); // todo!
|
||||||
reportInput.setFilename(filename);
|
reportInput.setFilename(filename);
|
||||||
|
|
||||||
QReportMetaData report = QJavalinImplementation.qInstance.getReport(reportName);
|
|
||||||
if(report == null)
|
|
||||||
{
|
|
||||||
throw (new QNotFoundException("Report [" + reportName + "] is not found."));
|
|
||||||
}
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
// process the report's input fields, from the query string //
|
// process the report's input fields, from the query string //
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user