Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009538Openbravo ERPA. Platformpublic2009-06-18 12:562009-07-18 00:00
iciordia 
mtaal 
urgentmajoralways
closedfixed 
5any
pi 
 
Core
No
0009538: Model Object wrong implementation
There are two defects in current implementation of model-object:
-Context-params in web.xml are generated from parameters of servlet model objects in the model. This is wrong because forces to create a faked servlet
-Current template of web.xml has some predefined entries that should be moved to model-object, mapping and parameter entities
No tags attached.
Issue History
2009-06-18 12:56iciordiaNew Issue
2009-06-18 12:56iciordiaAssigned To => alostale
2009-06-18 21:30iciordiaNote Added: 0017434
2009-06-18 22:22mtaalAssigned Toalostale => mtaal
2009-06-22 09:52rafarodaStatusnew => scheduled
2009-06-22 09:52rafarodafix_in_branch => pi
2009-06-22 21:57hgbotCheckin
2009-06-22 21:57hgbotNote Added: 0017538
2009-06-22 21:57hgbotStatusscheduled => resolved
2009-06-22 21:57hgbotResolutionopen => fixed
2009-06-22 21:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f15a06e10f8aa39e06822bef7580103e51c780db [^]
2009-07-17 13:59plujanStatusresolved => closed
2009-07-18 00:00anonymoussf_bug_id0 => 2823347

Notes
(0017434)
iciordia   
2009-06-18 21:30   
Original description is wrong. The problem is that contex-params can not be generated from model-object information. There are two context-params that are writen from openbravo.properties (ReplaceWith and attachment directory) the other ones are hard-coded in web.xml template.

Solution would be to support a new type of model-object (context-param type) and move hard-coded entries to model-object. Previous to generate web.xml it would be needed to update model-object entries (ReplaceWith and attachment directory) with values from openbravo.properties.
(0017538)
hgbot   
2009-06-22 21:57   
Repository: erp/devel/pi
Changeset: f15a06e10f8aa39e06822bef7580103e51c780db
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Jun 22 21:56:51 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f15a06e10f8aa39e06822bef7580103e51c780db [^]

fixes issue 9538: Model Object wrong implementation

---
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_PARA.xml
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-wad/src/org/openbravo/wad/Wad.java
M src-wad/src/org/openbravo/wad/Wad_data.xsql
M src-wad/src/org/openbravo/wad/web.xml
M src-wad/src/org/openbravo/wad/webConf.xml
---