In addition to removing the stack trace (PDB-5063) we want to omit java/postgresql related information from this error message. Specifically, the existing response includes {{javax.servlet.ServletException}} and {{org.postgresql.util.PSQLException}}, both of which we want to ensure do not get returned (but they can still be in the logs).
In addition to removing the stack trace (PDB-5063) we want to omit java/postgresql related information from this error message. Specifically, the existing response includes {{javax.servlet.ServletException}} and {{org.postgresql.util.PSQLException}}, both of which we want to ensure do not get returned by the API endpoint (but they can still be in the logs).
Description of the problem: When a \0x00 byte error is raised the existing response includes javax.servlet.ServletException and org.postgresql.util.PSQLException. Description of the fix: Only show the error message without the stacktrace and without the exception type class. (This was solved by the changes introduced for https://tickets.puppetlabs.com/browse/PDB-5063 )