View Issue Details

IDProjectCategoryView StatusLast Update
0007635mantisbtinstallationpublic2014-12-08 00:34
Reporterrobocoder Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.6 
Target Version1.3.0-beta.1Fixed in Version1.3.0-beta.1 
Summary0007635: 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.

TagsNo tags attached.

Relationships

related to 0007632 closeddregad Create operational database user at time of installation 

Activities

dregad

dregad

2013-10-16 11:09

developer   ~0038280

This is possibly resolved in master branch; please test with a nightly build starting tomorrow and let us know your feedback.

Related Changesets

MantisBT: master be00a3b9

2013-10-17 07:43

dregad


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