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 #776512,
regarding function InsertData() is defined twice: installation is broken
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.)


-- 
776512: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776512
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 page remains blank.

It seems that upstream commit 75a4e8df1e6a79b has not be fully applied.

----
$ git show 75a4e8df1e6a79b admin/install.php admin/install_functions.php
commit 75a4e8df1e6a79bab38f071cd6f033f194b22d8c
Author: Victor Boctor <vic...@mantishub.com>
Date:   Sun Dec 29 13:25:35 2013 -0800

    Fixes #16767: upgrade_unattended script is no longer working.

diff --git a/admin/install.php b/admin/install.php
index 466c02e..a3e8ed4 100644
--- a/admin/install.php
+++ b/admin/install.php
@@ -68,13 +68,6 @@ function print_test( $p_test_description, $p_result,
$p_hard_fail = true, $p_mes
        echo "</tr>\n";
 }
 
-# --------
-# create an SQLArray to insert data
-function InsertData( $p_table, $p_data ) {
-       $query = "INSERT INTO " . $p_table . $p_data;
-       return Array( $query );
-}
-
 # install_state
 #   0 = no checks done
 #   1 = server ok, get database information
diff --git a/admin/install_functions.php b/admin/install_functions.php
index e59229b..f9ffcc4 100644
--- a/admin/install_functions.php
+++ b/admin/install_functions.php
@@ -256,3 +256,11 @@ function
install_correct_multiselect_custom_fields_db_format() {
        # Return 2 because that's what ADOdb/DataDict does when things
happen properly
        return 2;
 }
+
+# --------
+# create an SQLArray to insert data
+function InsertData( $p_table, $p_data ) {
+       $query = "INSERT INTO " . $p_table . $p_data;
+       return Array( $query );
+}
+
----

Function InsertData is still defined in ./admin/install.php.

The following patch is enough:
----
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:20:41.000000000 +0100
@@ -120,13 +120,6 @@
        echo "</tr>\n";
 }
 
-// --------
-// create an SQLArray to insert data
-function InsertData($p_table, $p_data) {
-       $query = "INSERT INTO " . $p_table . $p_data;
-       return Array ($query );
-}
-
 // install_state
 //   0 = no checks done
 //   1 = server ok, get database information
----

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