Project

General

Profile

Actions

Bug #51383

closed

Functional test database name could exceed maximum database name length

Added by Sascha Egerer about 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2013-08-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The functional test framework creates a new database. The name of the database is the original database name + _test_ + a 7 chars long sha1 hash.

The maximum database name legth of mysql is 64 characters. (http://dev.mysql.com/doc/refman/5.5/en/identifiers.html)

If the length of the generated database name is higher then 64 characters an exception should be thrown.

The length of the generated name should also be shorter.

Maybe we should simply add _ft + the sha1. So it looks something like that orig_database_name_ft5b92679

The Grant table command can then be changed to

"GRANT ALL ON `' . $this->originalDatabaseName . '_ft%`.* TO `' . $user . '`@`' . $host . '`;"'

Actions #1

Updated by Gerrit Code Review about 11 years 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 https://review.typo3.org/23356

Actions #2

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23356

Actions #3

Updated by Gerrit Code Review about 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23356

Actions #4

Updated by Anonymous about 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF