Feature #82479

Support longer database passwords

Added by Tobias Hüske 4 months ago. Updated 7 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2017-09-13
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hey!

At the moment TYPO3 throws an error message when entering a database password that is larger than 50 characters.

See in file:

typo3/sysext/install/Classes/Controller/Action/Step/DatabaseConnect.php

            if (isset($postValues['password'])) {
                $value = $postValues['password'];
                if (strlen($value) <= 50) {
                    $defaultConnectionSettings['password'] = $value;
                } else {
                    $messages[] = new FlashMessage(
                        'iven password must be shorter than fifty characters.',
                        'Database password not valid',
                        FlashMessage::ERROR
                    );
                }
            }

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

I think the best way is raising TYPO3s limit for supporting longer (and safer) passwords.

Tobias

Associated revisions

Revision 682f770a (diff)
Added by Tobias Hüske about 1 month ago

[TASK] Support longer database passwords

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/54137
Reviewed-by: Alexander Schnitzler <>
Tested-by: Alexander Schnitzler <>
Tested-by: TYPO3com <>
Reviewed-by: Stefan Neufeind <>
Tested-by: Stefan Neufeind <>

Revision e33e87f6 (diff)
Added by Tobias Hüske 7 days ago

[TASK] Support longer database passwords

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 <>
Reviewed-by: Stefan Neufeind <>
Tested-by: Stefan Neufeind <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Gerrit Code Review 4 months ago

  • Status changed from New 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 https://review.typo3.org/54137

#2 Updated by Gerrit Code Review 4 months ago

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

#3 Updated by Gerrit Code Review about 1 month ago

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

#4 Updated by Gerrit Code Review about 1 month ago

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

#5 Updated by Gerrit Code Review about 1 month ago

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

#6 Updated by Tobias Hüske about 1 month ago

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

#7 Updated by Gerrit Code Review 29 days ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55179

#8 Updated by Gerrit Code Review 29 days ago

Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55179

#9 Updated by Tobias Hüske 7 days ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF