MantisBT - TestLink
View Issue Details
0008328TestLinkInstallerpublic2018-07-11 07:382018-07-11 08:22
1.9.17 (2018 Q1) 
0008328: Regex removing char from Database information at installation
We've come to an issue while making a new installation, specially at the database configuration step.

Throwing that error : Creating connection to Database Server: Failed!

We made a vardump(into php code at line 165) to see if there was any data loss and by investigating a bit and we found out the problem.

In the install/InstallNewDB.php file at line 56 there is a regex that only contain : #$san = '/[^A-Za-z0-9\-]/';#

And this regex (with "preg_replace(...)" method) removed the char that are not contained in it. ==> serverdomaincom
admin_db ==> admindb
paswword also got changed

1. Just run a new Installation at your first testLink use.
2. Add DB information with char (such as _.=:) either for server or user credentials
3. Check the credential that are used at the database creation step and see that some character have been removed.
I try adding the missing char into it and they were not removed in the vardump result. So this is possible to workaround it manually.
No tags attached.
Issue History
2018-07-11 07:38max4578New Issue
2018-07-11 08:22fmanQA Team - Task Workflow Status => TBD
2018-07-11 08:22fmanPriorityurgent => normal
2018-07-11 08:22fmanSeverityblock => minor

There are no notes attached to this issue.