Project

General

Profile

Actions

Bug #69039

closed

Epic #68397: Make TYPO3 work with MySQL strict mode

Functional Tests: NEWid generation in tests does not match core

Added by Morton Jonuschat over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Category:
Tests
Target version:
Start date:
2015-08-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Datahandler uses: uniqid('NEW', TRUE)
Tests use: 'NEW' . str_replace('.', '', uniqid(mt_rand(), TRUE))

The version in the tests generate IDs that are longer than permitted by the database, leading to test failures in MySQL strict mode and silent data truncation in non-strict MySQL operating mode.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #69050: Supply a Utility method to create unique ids in the coreClosedNicole Cordes2015-08-14

Actions
Related to TYPO3 Core - Bug #63943: PHPUnit-Tests fail on WindowsClosedStephan Großberndt2014-12-16

Actions
Actions #1

Updated by Gerrit Code Review over 9 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42625

Actions #2

Updated by Gerrit Code Review over 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/42625

Actions #3

Updated by Morton Jonuschat over 9 years ago

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

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF