daust / JasperReportsIntegration

JasperReportsIntegration provides an interface to use the JasperReports reporting engine in an Oracle database application, specifically with Oracle Application Express (Oracle APEX).
BSD 3-Clause "New" or "Revised" License
55 stars 23 forks source link

Suppressing debug information on the webpage #94

Closed daust closed 2 years ago

daust commented 2 years ago

When an error occurs, debug information (Java stack trace) is displayed on the web page. In #91 we have even added the actual sql error to be displayed.

The debugging information will be implemented similar to how ORDS implements the debugging output in the browser. By default, it is disabled, and you need to activate it deliberately for your development environment.

Would implement it as a new switch in the application.properties file:

# Showing error messages on the webpage are disabled by default
printDebugToScreen=false
daust commented 2 years ago

By default, you will NOT be able to see ANY error messages and cannot distinguish between a sql problem or whether the report cannot be found. This is the most secure.