Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034213 | Openbravo ERP | A. Platform | public | 2016-10-17 08:47 | 2018-04-20 09:58 |
|
Reporter | alostale | |
Assigned To | shuehner | |
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR18Q3 | |
Merge Request Status | |
Review Assigned To | alostale |
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 | 0034213: clean up AD_Model_Object and AD_Model_Object_Mapping |
Description | The main purpose of AD_Model_Object and AD_Model_Object_Mapping tables is to define in dictionary the mappings for web.xml. After 0032366 and 0032512, callouts are no longer defined as servlets.
Therefore mappings for them (which are not currently included in web.xml) should be removed.
Note, even they are not used for web.xml, callouts require of AD_Model_Object row to define the java class they use. |
Steps To Reproduce | - |
Proposed Solution | * Review and clean unneeded entries up
* Add validation to prevent future cases |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0032366 | 3.0PR16Q4 | closed | inigosanchez | Openbravo ERP | callout invocation ineficiencies | related to | feature request | 0032512 | 3.0PR17Q1 | closed | alostale | Openbravo ERP | support WildFly 10 | related to | defect | 0038368 | | closed | shuehner | Openbravo ERP | API-change for removal of obsolete ad_model_object_mapping for callouts in pi. | related to | defect | 0038370 | | closed | shuehner | Openbravo ERP | Stop auto-adding new html mapping for every new callout (in ad_callout_trg) | related to | defect | 0035540 | | closed | alostale | Openbravo ERP | Traceability Report does not work | related to | defect | 0038257 | | closed | shuehner | Retail Modules | Cleanup obsolete callout related ad_model_object_mapping entries | blocks | design defect | 0032688 | | acknowledged | Triage Platform Base | Openbravo ERP | remove unused resources |
|
Attached Files | SimpleCalloutMappingTest.java (4,228) 2017-01-13 14:21 https://issues.openbravo.com/file_download.php?file_id=10299&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-10-17 08:47 | alostale | New Issue | |
2016-10-17 08:47 | alostale | Assigned To | => platform |
2016-10-17 08:47 | alostale | Modules | => Core |
2016-10-17 08:47 | alostale | Triggers an Emergency Pack | => No |
2016-10-17 08:47 | alostale | Relationship added | related to 0032366 |
2016-10-17 08:47 | alostale | Relationship added | related to 0032512 |
2016-12-01 12:11 | alostale | Relationship added | blocks 0032688 |
2016-12-01 12:11 | alostale | Status | new => acknowledged |
2016-12-01 12:11 | alostale | Target Version | 3.0PR17Q1 => |
2017-01-13 13:56 | alostale | Proposed Solution updated | |
2017-01-13 14:21 | shuehner | File Added: SimpleCalloutMappingTest.java | |
2017-01-13 14:23 | shuehner | Note Added: 0093544 | |
2017-03-21 09:18 | alostale | Relationship added | related to 0035540 |
2018-03-30 14:10 | shuehner | Relationship added | related to 0038257 |
2018-04-14 14:23 | shuehner | Note Added: 0103884 | |
2018-04-14 14:24 | shuehner | Assigned To | platform => shuehner |
2018-04-14 14:26 | shuehner | Relationship added | related to 0038368 |
2018-04-14 14:28 | hgbot | Checkin | |
2018-04-14 14:28 | hgbot | Note Added: 0103885 | |
2018-04-14 14:28 | hgbot | Status | acknowledged => resolved |
2018-04-14 14:28 | hgbot | Resolution | open => fixed |
2018-04-14 14:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0ddd9d57e495bafab879eec45a978f2555fdf757 [^] |
2018-04-14 14:28 | shuehner | Review Assigned To | => alostale |
2018-04-14 15:16 | shuehner | Relationship added | related to 0038370 |
2018-04-20 09:58 | alostale | Note Added: 0104008 | |
2018-04-20 09:58 | alostale | Status | resolved => closed |
2018-04-20 09:58 | alostale | Fixed in Version | => 3.0PR18Q3 |
Notes |
|
|
In addition to cleanup the existing mappings i think we should also add a check to not introduce new mappings we don't really need.
The attached new junit test is quick start to find those mappings. It is based on our ClassLoaderTest adapted a bit to check for 'extends SimpleCallout' & checking for any mappings
Test maybe need some review + cleanup but is a start.
Note:
Probably only callouts should be cleaned up if the directly or indirectly depend on ERP 16Q4 which has the change of SimpleCallout. Either a note to the output or a check in the code could be added to avoid introducing issues here. |
|
|
|
|
|
(0103885)
|
hgbot
|
2018-04-14 14:28
|
|
Repository: erp/devel/pi
Changeset: 0ddd9d57e495bafab879eec45a978f2555fdf757
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Fri Mar 30 13:56:25 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0ddd9d57e495bafab879eec45a978f2555fdf757 [^]
Fixed 34213. Delete obsolete ad_model_object_mappings related to callouts.
Since commit b468094df0d0 (shipped in 17Q1 any callout related
model object(& mapping) are not generated into web.xml
As consequence all those ad_model_object mapping entries are obsolete and
hereby removed.
This applies both to SimpleCallout and old callouts still implementing a
servlet as FIC code does calls those old servlets directly in java without
doing a real http call.
---
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
R modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
R modules/org.openbravo.client.querylist/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
R modules/org.openbravo.userinterface.selector/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
---
|
|
|
|
|