Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0049438 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2022-05-30 15:05 | 2023-06-14 13:51 | |||
Reporter | gorkaion | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR22Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0049438: PostImportEntry is not being executed in some escenarios with multiple documents | |||||||
Description | When a POS Message contain multiple documents on the data array. If one of them fails and go to the EWI window the PostImportEntry is never executed for the documents that are properly processed. This is a big problem for implementers that trigger external synchronization processes when a document is created in backend. The problem is caused by the fact that as there is one document failing the exec is returning a failure so the PostImportEntry hook execution is executed. When the EWI is fixed the process is calling the hook but this is only run for the document that originally failed. The expected flow was broken with the fix of issue 0036037. Originally it was always executed regardless the result of the import entry process. In my opinion this should be the expected behavior (always executed) and the implementer should check if the import entry was properly processed or not. With current approach is not possible to implement a postprocess hook to trigger a warning or rollback process on failures. | |||||||
Steps To Reproduce | 1. Generate a message with 2 documents in the data array. 2. Make one of the document to fail. 3. Notice that the hook is not executed. 4. Fix the EWI and check the hook is executed but on a new import entry that only contain the document that failed. | |||||||
Proposed Solution | * hook to be executed regardless of the result. * add more information to implementer with the result of the process to easily determine if a document on the data array has been processed or not. Perhaps by modifying the json in the import entry? | |||||||
Tags | NOR | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||||||||||||||||||
|
Notes | |
(0138554) hgbot (developer) 2022-06-20 12:43 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/381 [^] |
(0138555) hgbot (developer) 2022-06-20 12:43 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/828 [^] |
(0138674) hgbot (developer) 2022-06-23 09:01 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^] Changeset: 0ecf130a8964e82fcc887b5d45a7301b97289cf4 Author: Ranjith S R <ranjith@qualiantech.com> Date: 20-06-2022 15:53:12 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/0ecf130a8964e82fcc887b5d45a7301b97289cf4 [^] Fixed ISSUE-49438: ImportEntryPostProcessor should be invoked only for processed records * When processing the record, if error occurs then Duplicate Import Entry should be created with processedRecords in jsonInfo. Above Import Entry should be used for ImportEntryPostProcessor implementation --- M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java M src/org/openbravo/mobile/core/process/MobileImportEntryProcessorRunnable.java --- |
(0138675) hgbot (developer) 2022-06-23 09:01 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/381 [^] |
(0138676) hgbot (developer) 2022-06-23 09:01 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^] Changeset: 1225b7157174a3944b9f7e80beb17ba7cb2b5d34 Author: Ranjith S R <ranjith@qualiantech.com> Date: 23-06-2022 07:01:34 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1225b7157174a3944b9f7e80beb17ba7cb2b5d34 [^] Related to ISSUE-49438: ImportEntryPostProcessor should be invoked only for processed records --- M src/org/openbravo/retail/posterminal/SaveDataActionHandler.java --- |
(0138677) hgbot (developer) 2022-06-23 09:01 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/828 [^] |
Issue History | |||
Date Modified | Username | Field | Change |
2022-05-30 15:05 | gorkaion | New Issue | |
2022-05-30 15:05 | gorkaion | Assigned To | => Retail |
2022-05-30 15:05 | gorkaion | Triggers an Emergency Pack | => No |
2022-05-30 15:05 | gorkaion | Relationship added | caused by 0036037 |
2022-05-30 15:05 | gorkaion | Relationship added | related to 0041109 |
2022-06-08 15:03 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2022-06-08 15:03 | ranjith_qualiantech_com | Status | new => scheduled |
2022-06-20 12:43 | hgbot | Note Added: 0138554 | |
2022-06-20 12:43 | hgbot | Note Added: 0138555 | |
2022-06-23 09:01 | hgbot | Resolution | open => fixed |
2022-06-23 09:01 | hgbot | Status | scheduled => closed |
2022-06-23 09:01 | hgbot | Fixed in Version | => RR22Q3 |
2022-06-23 09:01 | hgbot | Note Added: 0138674 | |
2022-06-23 09:01 | hgbot | Note Added: 0138675 | |
2022-06-23 09:01 | hgbot | Note Added: 0138676 | |
2022-06-23 09:01 | hgbot | Note Added: 0138677 | |
2022-07-08 09:38 | rafaroda | Tag Attached: NOR | |
2023-06-14 13:44 | ngarcia | Relationship added | causes 0052742 |
2023-06-14 13:50 | ngarcia | Relationship added | causes 0052739 |
2023-06-14 13:51 | ngarcia | Relationship deleted | causes 0052742 |
2023-06-15 09:55 | ngarcia | Relationship replaced | related to 0052739 |
2023-12-08 08:43 | Rajesh_18 | Relationship added | causes 0053973 |
Copyright © 2000 - 2009 MantisBT Group |