View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007635 | mantisbt | installation | public | 2006-12-07 12:26 | 2014-12-08 00:34 |
Reporter | robocoder | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.6 | ||||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0007635: Install script can't get MySQL version if database user doesn't exist or doesn't have access privileges | ||||
Description | install.php: ServerInfo() needs to be connected in order to get the database version. If the database user doesn't exist or doesn't have access privileges, ServerInfo() returns an array contain undefined values. Propose moving the call earlier (i.e., when admin user is connected). For future-proofing, add a null check before version_compare (otherwise php segfaults). | ||||
Additional Information | A fix appears in install feature/patch 0007632. | ||||
Tags | No tags attached. | ||||
MantisBT: master be00a3b9 2013-10-17 07:43 Details Diff |
Install: perform DB version check while connected as admin This avoids the issue where the call to ServerInfo() only works on MySQL if the database is open, which may not be the case when testing with database user (e.g. if user does not exist or does not have access) Fixes 0007635 |
Affected Issues 0007635 |
|
mod - admin/install.php | Diff File |