Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.0, 4.1.0, 4.2.0, 4.3.0
-
Fix Version/s: 4.3.1
-
Component/s: None
-
Labels:None
Description
See https://www.blesta.com/forums/index.php?/topic/11795-pdo-not-throwing-exceptions-on-errors/
PDO is configured to fail silently due to PDO::ATTR_ERRMODE set to 0 (silent). It should be set to PDO::ERRMODE_EXCEPTION (2) to throw exceptions for erroneous queries.
Activity
Tyson Phillips (Inactive)
created issue -
Tyson Phillips (Inactive)
made changes -
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Tyson Phillips (Inactive)
made changes -
Sprint | 4.4.0 Sprint 1 [ 64 ] |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked lower |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked higher |
Tyson Phillips (Inactive)
made changes -
Rank | Ranked lower |
Tyson Phillips (Inactive)
made changes -
Fix Version/s | 4.3.1 [ 11104 ] | |
Fix Version/s | 4.4.0-b1 [ 11105 ] |
Tyson Phillips (Inactive)
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Tyson Phillips (Inactive)
made changes -
Description |
See https://www.blesta.com/forums/index.php?/topic/11795-pdo-not-throwing-exceptions-on-errors/
PDO being used by Blesta to run queries is not configured to cause exceptions when errors are encountered. |
See https://www.blesta.com/forums/index.php?/topic/11795-pdo-not-throwing-exceptions-on-errors/
PDO is configured to fail silently due to PDO::ATTR_ERRMODE set to 0 (silent). It should be set to PDO::ERRMODE_EXCEPTION (2) to throw exceptions for erroneous queries. |
Automated transition triggered when Tyson Phillips (Inactive) created pull request #494 in Stash -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Tyson Phillips (Inactive)
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 51 minutes [ 3060 ] | |
Worklog Id | 11377 [ 11377 ] |
Tyson Phillips (Inactive)
made changes -
Summary | Configure PDO to cause exceptions on errorneous queries | Configure PDO to cause exceptions on erroneous queries |
Automated transition triggered when Tyson Phillips (Inactive) merged pull request #494 in Stash -
Status | In Review [ 5 ] | Closed [ 6 ] |