View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009951 | mantisbt | installation | public | 2008-12-09 10:48 | 2019-12-13 18:06 |
Reporter | rgomes1997 | Assigned To | dregad | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | PostgreSQL | OS | n/a | OS Version | n/a |
Product Version | 1.2.0a2 | ||||
Summary | 0009951: Database creation under PostgreSQL fails to create a new database | ||||
Description | When creating a new database by the installer script, it fails to assign the correct ownership to the newly created database. This behavior prevents other SQL commands to properly populate the database. | ||||
Steps To Reproduce | When creating a new database by the installer script, it fails to assign the correct ownership to the newly created database. This behavior prevents other SQL commands to properly populate the database. Use Case 1: no previous database present. a) Using pgadmin3, I make sure I dont have database "mantisbt". b) Parameters in admin/install.php page Type of Database : PGSQL Results: --> Database "mantisdb" is created under owner "admin" (the database administrator, which is not what we need!) Checking for register_globals are off for mantis GOOD Use Case 2: Database create by hand in pgadmin3 a) Using pgadmin3, I create a database "mantisdb" owned by "mantisuser". b) Parameters in admin/install.php page Type of Database : PGSQL Results: database is populated successfully | ||||
Tags | No tags attached. | ||||
Can you please test against the latest development snapshot of 1.2.x? There have been a couple changes targetting Postgres recently. Thank you. |
|
Hi, sorry for delay. I was not monitoring this issue :/ No. It's not working yet. I've tried using the yesterday's nightly build. The problem is that the database is owned by the administrator account instead of being owned by the mantis user account. The same applies to tables and other objects. Below you see an example where we could immediately assign the correct owner to the database and other objects. The mantis account ("mantisuser" in the example) must be used instead the database administrator. CREATE DATABASE bugtracker CREATE TABLE mantis_bug_file_table Cheers :) Richard Gomes |
|
It looks like the ADODB Datadict doesn't support the "OWNER" clauses directly. I'll have to look into this more. As I recall, if you create the database first the "mantis user" can create the rest of the information. |
|
Hi, There's another strategy which is trying to use a superuser account if provided. These are the steps:
A good source of information is Mediawiki. It does exactly like this, I mean: you have the possibility of creating the 'wikiuser' account and 'wikidb' database in one go and everything runs smoothly. Thanks |
|
We are resolving this issue as "no change required", because it was reported against an old version of MantisBT which is no longer supported. We recommend that you upgrade to the latest stable version [1]; if after doing so the problem still exists, do not hesitate to reopen the issue. |
|