[TASK] Support longer database passwords 79/55179/3
authorTobias Hüske <t.hueske@mittwald.de>
Wed, 20 Dec 2017 17:04:09 +0000 (18:04 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Jan 2018 20:31:58 +0000 (21:31 +0100)
Sometimes the database user has a password
that is larger than 50 characters. At the moment TYPO3
throws an error message when entering this password.

Microsoft SQL Server passwords can contain
up to 128 characters, MySQL & PostgreSQL have no limitations.

For this reason, the maximum password
length has been increased to 128 characters.

Resolves: #82479
Releases: master, 8.7
Change-Id: I4ff5ef85ec74f1ff87bfe5d3f6658196b67f8330
Reviewed-on: https://review.typo3.org/55179
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Classes/Controller/Action/Step/DatabaseConnect.php

index 473c6bd..fe80559 100644 (file)
@@ -73,15 +73,7 @@ class DatabaseConnect extends AbstractStepAction
                 }
             }
             if (isset($postValues['password'])) {
-                $value = $postValues['password'];
-                if (strlen($value) <= 50) {
-                    $defaultConnectionSettings['password'] = $value;
-                } else {
-                    $errorStatus = GeneralUtility::makeInstance(ErrorStatus::class);
-                    $errorStatus->setTitle('Database password not valid');
-                    $errorStatus->setMessage('Given password must be shorter than fifty characters.');
-                    $result[] = $errorStatus;
-                }
+                $defaultConnectionSettings['password'] = $postValues['password'];
             }
             if (isset($postValues['host'])) {
                 $value = $postValues['host'];