Feature #37360
Catch PDO exceptions to avoid outputting database information in exception backtrace
| Status: | Resolved | Start date: | 2012-05-21 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Aske Ertmann | % Done: | 100% |
|
| Category: | Persistence | |||
| Target version: | TYPO3 Flow Base Distribution - 2.0 beta 1 | |||
| PHP Version: | 5.3 | Complexity: | easy | |
| Has patch: | Yes | |||
| Votes: | 1 (View) |
Description
If the PDO connection throws an exception, it's not catched by FLOW3, which leads to a debug backtrace showing the calls to the PDO calls revealing the database information. Even though this only happens in Production context, I still believe that it should not be shown there.
I've created a patch and provided before and after screenshots. I have also testet that normal sql exceptions are not catching by this, e.g. a missing table.
Associated revisions
[FEATURE] Catch PDOExceptions to prevent database information in debug backtrace
Add catching of \PDOExceptions to the Doctrine Query class, and output the
exception message & code, but prevent the debug backtrace leading up to
it, since it contains the database information in the method calls.
Change-Id: Id0fcb66ed3d567f5190805cc023f195f425ceb14
Resolves: #37360
Releases: 1.2
History
Updated by Gerrit Code Review 12 months ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11369
Updated by Gerrit Code Review 12 months ago
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11370
Updated by Gerrit Code Review 12 months ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11370
Updated by Gerrit Code Review 12 months ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11370
Updated by Gerrit Code Review 12 months ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11370
Updated by Gerrit Code Review 10 months ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11370
Updated by Karsten Dambekalns 10 months ago
- Status changed from Under Review to Resolved