Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||||||||||||
View Issue Details | |||||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||
0036536 | Retail Modules | Web POS | public | 2017-07-27 10:06 | 2017-08-04 15:07 | ||||||||||||||||||||||||
Reporter | mtaal | ||||||||||||||||||||||||||||
Assigned To | mtaal | ||||||||||||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||||||||||
Product Version | |||||||||||||||||||||||||||||
Target Version | RR17Q4 | Fixed in Version | RR17Q4 | ||||||||||||||||||||||||||
Merge Request Status | |||||||||||||||||||||||||||||
Review Assigned To | marvintm | ||||||||||||||||||||||||||||
OBNetwork customer | No | ||||||||||||||||||||||||||||
Support ticket | |||||||||||||||||||||||||||||
Regression level | |||||||||||||||||||||||||||||
Regression date | |||||||||||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||||||||||
Summary | 0036536: Store response for external order loader and resend if duplicate message is received | ||||||||||||||||||||||||||||
Description | When using the external order loader it is possible that the response is not received by the caller. The caller can then decide to repeat the order request (as no response was received). However this can result a duplicate message, creating orders twice or more times for example. | ||||||||||||||||||||||||||||
Steps To Reproduce | Simulate a simple duplicate request: Put a breakpoint in the orderloader Run tomcat in debug mode Run one of the simple test cases [1] to call the external orderloader The system stops at the breakpoint Run the same test case again Breakpoint is hit second time Although this is not strictly a duplicate request it provides the idea. [1] https://code.openbravo.com/tools/automation/pi-mobile/file/0451be809da3/src-test/org/openbravo/test/mobile/retail/pack/webservice/tests/orderloader/RetailOrderLoaderTest.java [^] | ||||||||||||||||||||||||||||
Proposed Solution | - store the response for each request in the c_import_entry table in a new column. Do this at generic level as other calls can also benefit from this. - also store the error response - in the externalorderloader detect if a message was already processed/error, if so return the response - in the externalorderloader detect if a message is already being processed, if so wait a certain amount of time and then return the response. Make this wait time configurable. If after this time no response was generated throw an error. | ||||||||||||||||||||||||||||
Additional Information | |||||||||||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||||||||||
Relationships |
| ||||||||||||||||||||||||||||
Attached Files | |||||||||||||||||||||||||||||
Issue History | |||||||||||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||||||||||
2017-07-27 10:06 | mtaal | New Issue | |||||||||||||||||||||||||||
2017-07-27 10:06 | mtaal | Assigned To | => mtaal | ||||||||||||||||||||||||||
2017-07-27 10:06 | mtaal | OBNetwork customer | => No | ||||||||||||||||||||||||||
2017-07-27 10:06 | mtaal | Triggers an Emergency Pack | => No | ||||||||||||||||||||||||||
2017-07-27 10:11 | mtaal | Relationship added | related to 0036537 | ||||||||||||||||||||||||||
2017-07-27 10:13 | mtaal | Relationship added | related to 0036323 | ||||||||||||||||||||||||||
2017-07-27 10:19 | mtaal | Relationship added | related to 0036538 | ||||||||||||||||||||||||||
2017-08-01 18:55 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-08-01 18:55 | hgbot | Note Added: 0098316 | |||||||||||||||||||||||||||
2017-08-01 18:58 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-08-01 18:58 | hgbot | Note Added: 0098317 | |||||||||||||||||||||||||||
2017-08-01 18:58 | hgbot | Status | new => resolved | ||||||||||||||||||||||||||
2017-08-01 18:58 | hgbot | Resolution | open => fixed | ||||||||||||||||||||||||||
2017-08-01 18:58 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/64587bc76040df4e005363f22f566a6dff1e8bbf [^] | ||||||||||||||||||||||||||
2017-08-01 18:58 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-08-01 18:58 | hgbot | Note Added: 0098318 | |||||||||||||||||||||||||||
2017-08-01 19:06 | mtaal | Review Assigned To | => migueldejuana | ||||||||||||||||||||||||||
2017-08-01 19:06 | mtaal | Note Added: 0098319 | |||||||||||||||||||||||||||
2017-08-04 15:07 | marvintm | Review Assigned To | migueldejuana => marvintm | ||||||||||||||||||||||||||
2017-08-04 15:07 | marvintm | Status | resolved => closed | ||||||||||||||||||||||||||
2017-08-04 15:07 | marvintm | Fixed in Version | => RR17Q4 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|