Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0051121Openbravo ERPZ. Otherspublic2022-12-13 08:462023-01-13 13:45
ebecerra 
caristu 
normalmajorhave not tried
closedduplicate 
5
 
 
adrianromero
Core
No
0051121: There is an error when processing a EDL request line from EDL request window
When an EDL is executed from the BO (EDL request window) and the EDL raises an error and then user wants to re-process the results it throws an exception which not corresponds with the exception raised by the EDL.

This exception is correctly handled and stored in the backoffice but the ERP front-end displays to the user an error which is not related to the message of the exception raised.

Apart from that, the UI of the ERP gets stuck, not being able to close the dialog which shows the exception

See attach image: EDL-Error.png
Create a dummy EDL which returns several results one of them with error:
--
From backoffice open "EDL request window" and process the EDL
After that some results with success and error will appear in the below subtab "Request Line"
Go to the one which finished with error and press "process" button

The exception shown to the user is not releated to the message of the exception raised internaly when this line is processed

No tags attached.
duplicate of defect 0046865 closed caristu Modules Reprocessing a EDL Request line sometimes throws a lazy initialization error 
png EDL-Error.png (124,010) 2022-12-13 08:46
https://issues.openbravo.com/file_download.php?file_id=17939&type=bug
png
Issue History
2022-12-13 08:46ebecerraNew Issue
2022-12-13 08:46ebecerraAssigned To => Triage Omni OMS
2022-12-13 08:46ebecerraFile Added: EDL-Error.png
2022-12-13 08:46ebecerraModules => Core
2022-12-13 08:46ebecerraTriggers an Emergency Pack => No
2022-12-13 09:06aferrazAssigned ToTriage Omni OMS => Triage Platform Conn
2022-12-15 23:57guilleaerDescription Updatedbug_revision_view_page.php?rev_id=25261#r25261
2022-12-21 08:18guilleaerDescription Updatedbug_revision_view_page.php?rev_id=25278#r25278
2022-12-21 08:28guilleaerSummaryThere is an error when lauching an error in EDL request => There is an error when processing a EDL request line from EDL request window
2022-12-21 08:28guilleaerDescription Updatedbug_revision_view_page.php?rev_id=25279#r25279
2022-12-21 08:28guilleaerSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25281#r25281
2022-12-21 09:50adrianromeroAssigned ToTriage Platform Conn => caristu
2022-12-23 16:44caristuRelationship addedrelated to 0046865
2023-01-12 18:06caristuRelationship deletedrelated to 0046865
2023-01-12 18:06caristuRelationship addedduplicate of 0046865
2023-01-13 13:45adrianromeroReview Assigned To => adrianromero
2023-01-13 13:45adrianromeroNote Added: 0145393
2023-01-13 13:45adrianromeroStatusnew => closed
2023-01-13 13:45adrianromeroResolutionopen => duplicate

Notes
(0145393)
adrianromero   
2023-01-13 13:45   
Fixed in duplicated issue:

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.externaldata.integration [^] [^]
Changeset: f1b85eb8f62dbae4a00552863c22894845f800bc
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 13-01-2023 12:39:26
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.externaldata.integration/-/commit/f1b85eb8f62dbae4a00552863c22894845f800bc [^] [^]

fixes BUG-46865: avoid lazy init error when reprocessing a request line

  Refactor the code to avoid a potential LazyInitializationException
when accessing to the import entry of the EDL request line.

  As we only need the import status, we are modifying the code to
directly retrieve it with a query instead of refreshing the full import
entry object to only get the import status at this point.

---
M src/org/openbravo/externaldata/integration/handlers/RequestLineReprocessHandler.java
---