Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0046505 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| backport | [POS2] Core | critical | have not tried | 2021-05-05 09:33 | 2021-05-05 09:42 | |||
| Reporter | guilleaer | View Status | public | |||||
| Assigned To | guilleaer | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | TAP | |||
| Status | closed | Fix in branch | Fixed in SCM revision | |||||
| Projection | none | ETA | none | Target Version | TAP | |||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | caristu | |||||||
| OBNetwork customer | No | |||||||
| Support ticket | ||||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0046505: action preparation order is modified when the action fails | |||||||
| Description | When an action fails, the action preparation rollback mechanism is executed[1]. This mechanism executes all the rollback functions of each action preparation in reverse order. In order to retrieve the reversed order of rollback functions we are using the reverse function[2]. Note that reverse function mutates the original array[3]. In practice, this means that if an action fails, the next time it is executed the action preparations are executed in reversed order. [1] http://wiki.openbravo.com/wiki/StateController#Action_Preparations [^] [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/application-state/State.js#L60 [^] [^] [3] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse [^] [^] | |||||||
| Steps To Reproduce | 1) Put mobile.core in this branch: 2) Execute the State.test.js which contains a reproducer for the situation described in Description 3) Note that the test fails | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|||||||||
|
|||||||||
Notes |
|
|
(0127812) guilleaer (viewer) 2021-05-05 09:37 |
https://gitlab.com/obcustomers/AGAP/org.openbravo.mobile.core/-/commit/c61423a9d7c4c0593f2ca7fd5992dd5b37b44154 [^] |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2021-05-05 09:33 | guilleaer | New Issue | |
| 2021-05-05 09:33 | guilleaer | Assigned To | => caristu |
| 2021-05-05 09:33 | guilleaer | OBNetwork customer | => No |
| 2021-05-05 09:33 | guilleaer | Resolution time | => 1620424800 |
| 2021-05-05 09:33 | guilleaer | Triggers an Emergency Pack | => No |
| 2021-05-05 09:33 | guilleaer | Relationship added | related to 0046479 |
| 2021-05-05 09:34 | guilleaer | Status | new => acknowledged |
| 2021-05-05 09:37 | guilleaer | Status | acknowledged => scheduled |
| 2021-05-05 09:37 | guilleaer | Assigned To | caristu => guilleaer |
| 2021-05-05 09:37 | guilleaer | Note Added: 0127812 | |
| 2021-05-05 09:37 | guilleaer | Status | scheduled => resolved |
| 2021-05-05 09:37 | guilleaer | Fixed in Version | => TAP |
| 2021-05-05 09:37 | guilleaer | Resolution | open => fixed |
| 2021-05-05 09:37 | guilleaer | Review Assigned To | => caristu |
| 2021-05-05 09:42 | caristu | Status | resolved => closed |
| Copyright © 2000 - 2009 MantisBT Group |