View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011573 | mantisbt | upgrade | public | 2010-03-01 03:44 | 2013-08-09 13:50 |
Reporter | simtel | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 1.2.0 | ||||
Summary | 0011573: Cannot upgrade from 1.1.x to 1.2.0 using PostgreSQL and an unprivileged user | ||||
Description | If you try to upgrade from 1.1.x to 1.2.0, you cannot use a DB user that only has access to mantis' db. The upgrade process won't even start, complaining that it doesn't have access to the template1 db. The problem comes from this section in admin/install.php: <!-- connect to db -->
The first connect will fail, because the database name is not provided. It's actually an useless check. The only result worth checking is the second one. i.e. I have a mantis user that is the owner of the mantis database: it can do anything on that db, but it can do nothing on other databases. There's no reason to force the upgrade process to run as superuser: for one, it might not be possible in some environments where the DBA won't allow it. | ||||
Tags | No tags attached. | ||||