View Issue Details

IDProjectCategoryView StatusLast Update
0026783mantisbtdb oraclepublic2020-03-16 03:12
Reporteramrodmbt Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version2.24.0 
Summary0026783: Schema generated does not include preset Special handling for Oracle during installation
Description

When Oracle Database type is selected, special handling for Oracle in schema.php is not called correctly during installing database.

Additional Information

It seems that install.php tries to fake out database access routines used by config_set_global( 'db_type', $f_db_type ), but global variable$g_db_functional_type, which is used by db_is_oracle() function in schema.php, is not reloaded according to this new db_type value.
The bug is fixed after adding the below line after Line 859 in install.php:

$g_db_functional_type = db_get_type( config_get_global( 'db_type' ) );

Moreover, due to stricter checking on declared variable after PHP 7.4, a isset() checking should be added on Line 1005 and 1007.
Otherwise, a SYSTEM NOTICE: 'Trying to access array offset on value of type null' in 'C:\inetpub\wwwroot\mantisbt\admin\install.php' will occur.

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-03-16 03:12 amrodmbt New Issue