Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008944Openbravo ERPY. DBSourceManagerpublic2009-05-07 11:462012-03-02 15:37
shuehner 
marvintm 
urgentminorhave not tried
closedfixed 
5
2.40MP4 
3.0MP93.0MP9 
Core
No
0008944: create.database fails when pg-superuser username != postgres
The command does fails as it implictely assumes that the pg-superuser username is postgres (correctly assumes that a (pg-system) database with the same name exists, as the system-db is named postgres).

So this will fails when someone runs its postgres server under a different username.

This should not affect 90% or more of the standard installations => minor.
Explicitely connect to the system database when doing administrative tasks (i.e. create/drop user, create/drop database)
No tags attached.
diff 8944_proposed_fix.diff (2,182) 2012-02-07 16:08
https://issues.openbravo.com/file_download.php?file_id=4960&type=bug
Issue History
2009-05-07 11:46shuehnerNew Issue
2009-05-07 11:46shuehnerAssigned To => marvintm
2009-05-07 11:46shuehnerRegression testing => No
2009-05-07 16:54psarobeStatusnew => scheduled
2009-05-07 16:54psarobefix_in_branch => pi
2012-02-03 18:32shuehnerPrioritylow => urgent
2012-02-03 18:32shuehnerTarget Version => 3.0MP9
2012-02-03 18:32shuehnerfix_in_branchpi =>
2012-02-07 16:08shuehnerFile Added: 8944_proposed_fix.diff
2012-02-08 09:54hgbotCheckin
2012-02-08 09:54hgbotNote Added: 0044923
2012-02-08 09:54hgbotStatusscheduled => resolved
2012-02-08 09:54hgbotResolutionopen => fixed
2012-02-08 09:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/38823d9d9f24fff11def96a0cd9b22b324e829e4 [^]
2012-02-16 12:12hgbotCheckin
2012-02-16 12:12hgbotNote Added: 0045184
2012-02-16 15:21AugustoMauchNote Added: 0045198
2012-02-16 15:21AugustoMauchStatusresolved => closed
2012-02-16 15:21AugustoMauchFixed in Version => 3.0MP9
2012-03-02 15:35hudsonbotCheckin
2012-03-02 15:35hudsonbotNote Added: 0045772
2012-03-02 15:37hudsonbotCheckin
2012-03-02 15:37hudsonbotNote Added: 0045867

Notes
(0044923)
hgbot   
2012-02-08 09:54   
Repository: erp/devel/pi
Changeset: 38823d9d9f24fff11def96a0cd9b22b324e829e4
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Feb 08 09:53:24 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/38823d9d9f24fff11def96a0cd9b22b324e829e4 [^]

Fixed issue 8944. Openbravo will work when pg superuser is not postgres

---
M src-db/database/build-create.xml
---
(0045184)
hgbot   
2012-02-16 12:12   
Repository: erp/devel/pi
Changeset: e2fb0056c7244e06191f3f2ccf90e4d44569d4f5
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Feb 16 10:45:18 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e2fb0056c7244e06191f3f2ccf90e4d44569d4f5 [^]

Related to issue 8944. Removed wrong echo

---
M src-db/database/build-create.xml
---
(0045198)
AugustoMauch   
2012-02-16 15:21   
Code reviewed and verified.
(0045772)
hudsonbot   
2012-03-02 15:35   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/544d64e0c159 [^]

Maturity status: Test
(0045867)
hudsonbot   
2012-03-02 15:37   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/544d64e0c159 [^]

Maturity status: Test