[BUGFIX] Harden database select step 67/47967/4
authorHelmut Hummel <info@helhum.io>
Fri, 29 Apr 2016 10:50:38 +0000 (12:50 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 7 May 2016 09:36:18 +0000 (11:36 +0200)
commitb9eab740d5b9b388709c40b288f46b0fde476505
treec04c0b85dc359623d294afe6ca88982abaae521c
parentadddeeb63c8c6c41e7ed9b9a78db74c4c9f19f56
[BUGFIX] Harden database select step

Currently this step does not do precautions, when
the selected database does not exist. Additionally the step
silently skips when the chosen database already has tables.

Although the UI currently does not allow to select a non
empty database, there are situations imaginable, where the database
is empty during generation of the input form but is filled directly
after that, or a database was empty but then got deleted, which
previously ended up with a fatal error.

This change now takes care of both cases and outputs a nice error
message accordingly.

Resolves: #75964
Releases: 7.6, master
Change-Id: Ibc7083aa120f420d6201e512f3f41699f55c5f7f
Reviewed-on: https://review.typo3.org/47967
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/install/Classes/Controller/Action/Step/DatabaseSelect.php