MantisBT - v2.3 Release (Closed)
View Issue Details
0000595v2.3 Release (Closed)[All Projects] Generalpublic2010-10-08 01:352011-03-24 09:52
Assigned Tocaseydk 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version2.3 
Summary0000595: During installation no check if database parameters are invalid
DescriptionDuring my migration / installation of web2project I found an issue regarding database parameters. If incorrect database parameters are provided the setup script will only detect that the dotProject version could not be determined. And installation CAN continue. IMHO that's wrong

Steps to reproduce:
1. Provide a dotproject config.php with incorrect password
2. Browse to index.php and see that installation check will start
3. In the results see that the dotProject version could not be determined
4. If you continue installation the database is not migrated and web2project doesn't work

Suggested fix:
In step 3, if it is clear that a database connection could not be established, make that clear by stating for example: "A database connection could not be established, please check the parameters". And make it impossible to continue installation if there is no valid database connection.
Additional InformationThe reason that the password was not valid is because I had to do a migration from mysql4 to mysql5.
TagsNo tags attached.
Attached Filesdiff patch595.diff (746) 1969-12-31 16:00

2010-10-20 03:35   
I've created a patch which will check the database connection before the conversion will start.

The patch can be applied to instal\conversion\check.php
2011-02-28 20:57   
Resolved in r1710;
2011-03-24 09:52   
Closed in preparation for v2.3 release.

Issue History
2010-10-08 01:35peterNew Issue
2010-10-20 03:35peterNote Added: 0001315
2010-10-20 03:35peterFile Added: patch595.diff
2010-10-20 08:56caseydkStatusnew => assigned
2010-10-20 08:56caseydkAssigned To => caseydk
2010-12-28 20:41caseydkCategory-- none specified -- => Core Infrastructure
2011-01-08 10:14caseydkProjectPending Requests => v2.3 Release (Closed)
2011-02-28 20:57caseydkNote Added: 0001702
2011-02-28 20:57caseydkStatusassigned => resolved
2011-02-28 20:57caseydkResolutionopen => fixed
2011-03-24 09:52caseydkNote Added: 0001784
2011-03-24 09:52caseydkStatusresolved => closed
2011-03-24 09:52caseydkFixed in Version => 2.3