24553[BUGFIX] Improve database connection smooth migration wizard
Commit message
Review
-
Code review CR +2
- Christian Kuhn +2
- Alexander Opitz +1
- Philipp Gampe +1
-
Verified V +2
- Christian Kuhn +2
- Alexander Opitz +1
- Philipp Gampe +1
Issues 1
Files 1
Review log 18
-
Mr. Jenkins commented on patch set 1 10/11/13, 10:15
Build Successful https://ci.typo3.org/job/typo3-v4-core-gerrit/11242/ : SUCCESS -
Marcus Schwemer commented on patch set 1 V -1 10/11/13, 10:46
See inline comment.DatabaseConnect.php:381Here ist the "problem". The comparison to localhost fails in my case, because my hostname ist "mysql5.netzwerkberatung.de". This is a convention at the german hoster domainFactory: mysql5.domain.de == 127.0.0.3 (connects to mysql5) mysql4.domain.de == 127.0.0.2 (connects to mysql4) mysql3.domain.de == 127.0.0.1 (connects to mysql3) -
Marcus Schwemer commented on patch set 1 10/11/13, 10:50
A solution might be to dig / nslookup the hostname before and then test for 127.x.x.x ... -
Nicole Hummel commented on patch set 1 10/11/13, 10:51
DatabaseConnect.php:381ReplyThis shouldn't be no problem now as the port is set independent from any host name (see above). I tested this with name local.local Have you really tested the patch? -
Marcus Schwemer commented on patch set 1 V +1 CR +1 10/11/13, 11:26
My fault ... while testing the "redirectCount" was still set to "9". Thx Nicole.DatabaseConnect.php:381ReplyYes :-) -
Christian Kuhn commented on patch set 1 CR -1 10/11/13, 14:22
DatabaseConnect.php:396-1: socket and port must not be configured at the same time. -
Nicole Hummel uploaded patch set 2 10/11/13, 20:49
-
Nicole Hummel uploaded patch set 3 10/11/13, 21:04
-
Mr. Jenkins commented on patch set 2 10/11/13, 21:31
Build Successful https://ci.typo3.org/job/typo3-v4-core-gerrit/11298/ : SUCCESS -
Philipp Gampe voted on patch set 3 V +1 CR +1 10/11/13, 21:54
-
Mr. Jenkins commented on patch set 3 10/11/13, 22:07
Build Successful https://ci.typo3.org/job/typo3-v4-core-gerrit/11301/ : SUCCESS -
Alexander Opitz commented on patch set 3 V +1 CR +1 10/12/13, 22:03
The point that it isn't a socket but a named pipe on windows (host= '.', socket='mysql') is not skope of this issue. So ok for me. -
Wouter Wolters wrote 10/16/13, 18:10
Topic set to "install-tool". -
Stefan Neufeind commented on patch set 3 CR -1 10/17/13, 11:37
That part about defaulting 127.anything to 127.0.0.1 seems weird to me - why not use the value provided?DatabaseConnect.php:382either this way or: 127.0.0.0/8 Maybe also consider ::1 (IPv6 localhost)? We could do that in a separate changeset though if you prefer :-)DatabaseConnect.php:389Why not use the provided value? At least in theory people might be using 127.0.0.1 and 127.0.0.2 both on a local machine and running different databases! -
Nicole Hummel commented on patch set 3 10/17/13, 11:44
DatabaseConnect.php:389Replythis sets 127.0.0.1 as default value. If there is any other local value nothing is changed at all. This allows databases on 127.0.0.2 eg -
Stefan Neufeind commented on patch set 3 CR 0 10/17/13, 12:16
DatabaseConnect.php:389ReplyI missed the "not" in front :-) Thanks. -
Christian Kuhn commented on patch set 3 V +2 CR +2 10/17/13, 19:34
Seems to work ... I'll merge for now.DatabaseConnect.php:382ReplyI can live with 127.*.*.* ... according to cmpIP tests it is valid and works. ipv6 is more or less left out here by intention to not handle even more complex cases here, the handling is already way too complicated for my feelings (at we already had tons of changes here). -
Christian Kuhn merged patch set 4 10/17/13, 19:34