Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0029275 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
defect | [Openbravo ERP] A. Platform | minor | always | 2015-03-13 15:28 | 2022-02-01 08:05 | ||||||
Reporter | egoitz | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Any | Database | Any | Java version | |||||||
OS Version | Database version | Ant version | |||||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
Web browser | |||||||||||
Modules | Core | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0029275: Executing an smartbuild uses a Openbravo.properties located on a config folder on the same level than the installation folder | ||||||||||
Description | When executing an smartbuild the Openbravo.properties file is use to get the data to connect the database. By default the file is located on the config folder on the Openbravo installation folder. If for any case you have a config folder on the parent folder of the OPenbravo installation folder with a Openbravo.properties file, that file is used. If it is not correct you will get a error. | ||||||||||
Steps To Reproduce | Having a Openbravo installation working on the following folder: /opt/OpenbravoERP copy the config folder to have also the config folder on the following location: /opt/config Change the /opt/config/Openbravo.properties to point to a not existint database Go to /opt/OpenbravoERP execute ant smartubuild You get a error generate.entities.quick: [java] 0 [main] INFO org.openbravo.base.gen.GenerateEntitiesTask - Model has not changed since last run, not re-generating entities [java] 59 [main] ERROR org.openbravo.database.ConnectionProviderImpl - Error getting connection [java] org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. [java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136) [java] at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66) [java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125) [java] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30) [java] at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22) [java] at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30) [java] at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24) | ||||||||||
Proposed Solution | The issue is in OBRebuildAppender: if (new File("../../config/Openbravo.properties").exists()) fProp = new File("../../config/Openbravo.properties"); else if (new File("../config/Openbravo.properties").exists()) fProp = new File("../config/Openbravo.properties"); else if (new File("config/Openbravo.properties").exists()) fProp = new File("config/Openbravo.properties"); | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Issue History | |||
Date Modified | Username | Field | Change |
2015-03-13 15:28 | egoitz | New Issue | |
2015-03-13 15:28 | egoitz | Assigned To | => AugustoMauch |
2015-03-13 15:28 | egoitz | Modules | => Core |
2015-03-13 15:28 | egoitz | Triggers an Emergency Pack | => No |
2015-03-16 08:00 | alostale | Status | new => acknowledged |
2015-03-17 14:37 | alostale | Assigned To | AugustoMauch => platform |
2022-02-01 08:05 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |