Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036799
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagerminorhave not tried2017-09-05 19:102022-02-01 08:05
ReporterinigosanchezView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0036799: workingDir path should be get from source.path property instead of user.dir property.

DescriptionThis 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 SolutionThis line:

     String workingDir = System.getProperty("source.path");

instead of this one:

     String workingDir = System.getProperty("user.dir");
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker