Project

General

Profile

Actions

Bug #53728

closed

SQL view crashes Database

Added by Francois Suter over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2013-11-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

Methods \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_fields() and \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_keys() lack a proper check on the result of the query to ensure that they indeed returned an object.

In particular this causes a crash in the Install Tool > Database Analyser > Compare function when a SQL view is present.

A check should be added. It already exists for similar methods \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_tables() and \TYPO3\CMS\Core\Database\DatabaseConnection::admin_get_charsets().

This problem exists since the move to PDO.


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #53014: DatabaseConnection admin_get_fields and admin_get_keys don't check if the query result is validClosedThomas Maroschik2013-10-21

Actions
Actions #1

Updated by Francois Suter over 10 years ago

  • Status changed from Accepted to Closed

I was looking at TYPO3 6.1. The problem was solved in 6.2, but not backported.

Actions

Also available in: Atom PDF