Openbravo Issue Tracking System - Modules
View Issue Details
0039685ModulesExternal Data Integrationpublic2018-11-23 10:262019-01-15 11:27
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
 
AugustoMauch
0039685: EDL Request Line Error Message length should be controlled when setting it
EDL Request Line Error Message length should be controlled when setting it. In case the error message provided is higher that the maximum allowed it can cause trouble when managing the error state of the request line. Because this can lead to have the import entry status in error and the related EDL request line status not being updated accordingly.

This is a sample trace of an import entry error, caused because of trying to set an error message higher than the maximum allowed:

org.openbravo.base.validation.ValidationException: errorMsg: <errorMsg> is too long, it has length <length>, the maximum allowed length is 2000
                at org.openbravo.base.model.Property.checkIsValidValue(Property.java:833)
                at org.openbravo.base.structure.BaseOBObject.set(BaseOBObject.java:264)
                at org.openbravo.externaldata.integration.OBEDLRequestLine.setErrorMsg(OBEDLRequestLine.java:184)
                at org.openbravo.externaldata.integration.process.ProcessRequest.processRequestLine(ProcessRequest.java:513)
                at org.openbravo.externaldata.integration.process.EDLImportEntryProcessor$EDLEntryProcessRunnable.processEntry(EDLImportEntryProcessor.java:95)
                at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.doRunCycle(ImportEntryProcessor.java:369)
                at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:290)
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at java.lang.Thread.run(Thread.java:748)
In description
Limit the size of the error message before setting it to the EDL request line in case it is higher to the maximum allowed.
No tags attached.
related to defect 0039949 new Triage Platform Base The maximum length of EDLRequest.response should be checked before setting it 
Issue History
2018-11-23 10:26caristuNew Issue
2018-11-23 10:26caristuAssigned To => caristu
2018-11-23 10:28caristuSummaryRequest Line Error Message length should be controlled when setting it => EDL Request Line Error Message length should be controlled when setting it
2018-11-23 10:28caristuDescription Updatedbug_revision_view_page.php?rev_id=17955#r17955
2018-11-23 10:28caristuProposed Solution updated
2018-11-23 10:28caristuProposed Solution updated
2018-11-23 10:31caristuDescription Updatedbug_revision_view_page.php?rev_id=17956#r17956
2018-11-23 10:31caristuProposed Solution updated
2018-11-23 10:39caristuReview Assigned To => AugustoMauch
2018-11-23 10:43caristuDescription Updatedbug_revision_view_page.php?rev_id=17957#r17957
2018-11-23 10:44caristuDescription Updatedbug_revision_view_page.php?rev_id=17958#r17958
2018-11-23 11:34hgbotCheckin
2018-11-23 11:34hgbotNote Added: 0108074
2018-11-23 11:34hgbotStatusnew => resolved
2018-11-23 11:34hgbotResolutionopen => fixed
2018-11-23 11:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.externaldata.integration/rev/2ceb47e7d36396f9b40bcba5bdfc1c9ee58377fc [^]
2018-11-23 11:55caristuIssue cloned0039687
2018-12-10 16:36AugustoMauchNote Added: 0108371
2018-12-10 16:36AugustoMauchStatusresolved => closed
2019-01-15 11:27AugustoMauchIssue cloned0039949
2019-01-15 11:28AugustoMauchRelationship addedrelated to 0039949

Notes
(0108074)
hgbot   
2018-11-23 11:34   
Repository: erp/pmods/org.openbravo.externaldata.integration
Changeset: 2ceb47e7d36396f9b40bcba5bdfc1c9ee58377fc
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Nov 23 11:33:13 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.externaldata.integration/rev/2ceb47e7d36396f9b40bcba5bdfc1c9ee58377fc [^]

fixes bug 39685: Check EDL Request Line Error Message length before setting it

---
M src/org/openbravo/externaldata/integration/process/AsynchronousProcessor.java
M src/org/openbravo/externaldata/integration/process/EDLImportEntryProcessor.java
M src/org/openbravo/externaldata/integration/process/ProcessRequest.java
A src/org/openbravo/externaldata/integration/util/EDLUtils.java
---
(0108371)
AugustoMauch   
2018-12-10 16:36   
Code reviewed and verified