Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0036799 | Openbravo ERP | Y. DBSourceManager | public | 2017-09-05 19:10 | 2022-02-01 08:05 |
Reporter | inigosanchez | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | acknowledged | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0036799: workingDir path should be get from source.path property instead of user.dir property. | ||||
Description | This method [1] is used to retrieves the properties from Openbravo properties file. This method can't find Openbravo properties file because this file is located in source.path/config/Openbravo.properties not in user.dir/config/Openbravo.properties [1]. https://code.openbravo.com/erp/devel/dbsm-main/file/3951b20a691d/src/org/openbravo/ddlutils/util/DBSMOBUtil.java#l1231 [^] | ||||
Steps To Reproduce | -Install EZattributes module -In order to Execute GenerateProcess.java task go to [Easy Extensible Attributes] window and create in grid view a new record: * Window: Assets * Module: Select a module for testing purposes. -Go to [Tab] subtab and create in grid view a new record: * Window: Assets * Tab: Assets * Table: A_Asset * Saved_Ad_Tab_Id: Assets -Go to [Field] subtab and create in grid view a new record: * Field Template: Name * Column: Name * Field: Name - Assets - Assets -Focus on header tab and execute "Apply to Application Dictionary" process. -Process is executed succesfully but an error in console is shown: .............................................................. 119768 INFO - 0 records have been exported from table OBUIAPP_PARAMETER 119769 INFO - Database [name=PostgreSql server; 2 tables; 0 sequences; 7 views; 15 functions; 61 triggers] 119769 INFO - Database [name=tables; 1 tables; 0 sequences; 0 views; 0 functions; 1 triggers] Error while obtaining the Openbravo.properties file java.io.FileNotFoundException: /home/openbravo/../../config/Openbravo.properties (No such file or directory) There was a problem updating the CRC in the database. at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at org.openbravo.ddlutils.util.DBSMOBUtil.getOpenbravoProperties(DBSMOBUtil.java:1266) at org.openbravo.ddlutils.util.DBSMOBUtil.getUnpooledConnection(DBSMOBUtil.java:652) at org.openbravo.ddlutils.util.DBSMOBUtil.updateCRC(DBSMOBUtil.java:628) at org.openbravo.ezattributes.processes.GenerateProcess.execute(GenerateProcess.java:1157) at org.openbravo.scheduling.ProcessRunner.execute(ProcessRunner.java:83) at ............................... | ||||
Proposed Solution | This line: String workingDir = System.getProperty("source.path"); instead of this one: String workingDir = System.getProperty("user.dir"); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2017-09-05 19:10 | inigosanchez | New Issue | |||
2017-09-05 19:10 | inigosanchez | Assigned To | => platform | ||
2017-09-05 19:10 | inigosanchez | Modules | => Core | ||
2017-09-05 19:10 | inigosanchez | Triggers an Emergency Pack | => No | ||
2017-09-28 12:35 | alostale | Status | new => acknowledged | ||
2022-02-01 08:05 | alostale | Assigned To | platform => Triage Platform Base |
There are no notes attached to this issue. |