Your message dated Wed, 12 Oct 2016 17:11:18 +0300
with message-id <20161012141118.yeuqmvqqrvemz...@bunk.spdns.de>
and subject line Closing Mantis bugs
has caused the Debian Bug report #776517,
regarding Checking Database Server Version is broken during installation process
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
776517: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776517
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: mantis
Version: 1.2.18-1

$ uname -a && cat /etc/debian_version 
Linux host 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux
7.8

I'm trying to install mantis-1.2.18-1, but unfortunately
the ./admin/install.php reports the following error:


Checking Database Server Version: BAD MySQL 4.1.0 or later is required for 
installation.


The server is running MySQL 5.5:
$ dpkg -l mysql*|grep ii
ii  mysql-client-5.5                      5.5.41-0+wheezy1                amd64 
       MySQL database client binaries
ii  mysql-common                          5.5.41-0+wheezy1                all   
       MySQL database common files, e.g. /etc/mysql/my.cnf
ii  mysql-server                          5.5.41-0+wheezy1                all   
       MySQL database server (metapackage depending on the latest version)
ii  mysql-server-5.5                      5.5.41-0+wheezy1                amd64 
       MySQL database server binaries and system database setup
ii  mysql-server-core-5.5                 5.5.41-0+wheezy1                amd64 
       MySQL database server binaries

When I apply the following code from upstream master-1.2.x, the error is gone 
and I can go through the installation process:

----
diff -ur usr/share/mantis/www/admin/install.php 
/usr/share/mantis/www/admin/install.php
--- usr/share/mantis/www/admin/install.php      2012-06-15 17:24:55.000000000 
+0200
+++ /usr/share/mantis/www/admin/install.php     2015-01-28 22:58:36.000000000 
+0100
@@ -576,40 +569,39 @@
 <table width="100%" border="0" cellpadding="10" cellspacing="1">
 <!-- display database version --> 
 <tr>
-               <?php
-               $t_warning = '';   
-               $t_error = '';
-               switch ($f_db_type) {
-                       case 'mysql' :
-                       case 'mysqli' :
-
-                               // due to a bug in ADODB, this call prompts 
warnings, hence the @
-                               // the check only works on mysql if the 
database is open
-                               // using default mysql db to test the version
-                               $default_mysql_database =  "mysql" ;
-                               @$g_db->Connect ( $f_hostname, 
$f_admin_username, $f_admin_password,$default_mysql_database);
-                               $t_version_info = @$g_db->ServerInfo ();
-                               if (version_compare ( $t_version_info 
['version'], '4.1.0', '<' )) {
-                                       $t_error = 'MySQL 4.1.0 or later is 
required for installation. '.$error_go_back;
-                               }else{
-                                       $t_result_validation = '<br /> Running 
' . $f_db_type . ' version ' . $t_version_info ['description'];
-                               }  
-                               break;
-                       case 'pgsql' :
-                       case 'mssql' :
-                       case 'db2' :
-                       default :  
-                               $t_result_validation = '<br /> Running ' . 
$f_db_type ;
-                               break;
-               }
-               ?>
-               <td bgcolor="#ffffff" width="60%">Checking Database Server 
Version <?php echo $t_result_validation?></td>
-               <?php
-               //show results
-               print_test_result ( ('' == $t_error) && ('' == $t_warning), ('' 
!= $t_error), $t_error . ' ' . $t_warning );
-               //control mysql errors
-               if('' == !$t_error){ exit; }
-               ?>
+        <td bgcolor="#ffffff">
+                Checking Database Server Version
+                <?php
+                # due to a bug in ADODB, this call prompts warnings, hence the 
@
+                # the check only works on mysql if the database is open
+                $t_version_info = @$g_db->ServerInfo();
+                echo '<br /> Running ' . string_attribute( $f_db_type ) . ' 
version ' . $t_version_info['description'];
+                ?>
+        </td>
+        <?php
+                $t_warning = '';  
+                $t_error = '';
+                switch( $f_db_type ) {
+                        case 'mysql':
+                        case 'mysqli':
+                                if( version_compare( 
$t_version_info['version'], '4.1.0', '<' ) ) {
+                                        $t_error = 'MySQL 4.1.0 or later is 
required for installation.';
+                                } 
+                                break;
+                        case 'mssql':
+                        case 'mssqlnative':
+                                if( version_compare( 
$t_version_info['version'], '9.0.0', '<' ) ) {
+                                        $t_error = 'SQL Server 2005 or later 
is required for installation.';
+                                } 
+                                break;
+                        case 'pgsql':
+                        case 'db2':
+                        default:  
+                                break;
+                }
+
+                print_test_result(( '' == $t_error ) && ( '' == $t_warning ), 
( '' != $t_error ), $t_error . ' ' . $t_warning );
+                ?>
 </tr>
 </table>
----

Regards,

-- 
Bruno

--- End Message ---
--- Begin Message ---
Version: 1.2.18-1+deb7u1+rm

Dear submitter,

the package mantis has been removed from the Debian unstable some 
time ago, and since mantis is not covered by the LTS security support
for wheezy there is no release where it is still security supported.

I therefore close the open bug reports in mantis.

We are sorry that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/730121


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--- End Message ---

Reply via email to