Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047215
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajoralways2021-06-23 09:222021-06-28 17:26
ReporterjmelinView Statuspublic 
Assigned Tocberner 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version7.x
OS VersionOpenbravo Appliance 14.04Database version9.3.xAnt version1.9.x
Product VersionSCM revision 
Review Assigned To
Regression levelPre packaging ( pi )
Regression date2021-03-16
Regression introduced in release
Regression introduced by commithttps://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/b8fde8a7bf3a7beece33da5cff38204b8f1f9493#a5ccd333ab96571c23fbd8439b70cb4cfdfaf04c_14_15 [^]
Triggers an Emergency PackNo
Summary

0047215: JIRA 2140 - Approval doesn't work in offline

DescriptionWhen the POS is offline, it is not possible to approve an user action, even if the user uses to approve already approve on the POS and/or log in to the POS
Steps To ReproduceCase 1
1. In BO, set an user action to "Require approval" for a user (User 1 below) and "Can use and approve" for an other (User 2)
2. Connect to POS with User 1
3. Try to do the action with approval
4. Enter User 2 credential to approve
5. Disconnect network from OB Central
6. Try to do the action with approval
7. Enter User 2 credential to approve
=> action can't be approve

Case 2
1. In BO, set an user action to "Require approval" for a user (User 1 below) and "Can use and approve" for an other (User 2)
2. Connect to POS with User 2 and log out
3. Connect to POS with User 1
4. Try to do the action with approval
5. Enter User 2 credential to approve
6. Disconnect network from OB Central
7. Try to do the action with approval
8. Enter User 2 credential to approve
=> action can't be approve
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0047222TAP closedcberner JIRA 2140 - Approval doesn't work in offline 

-  Notes
(0129738)
alostale (manager)
2021-06-23 12:40

Regression caused by Offline<->Online Transitions Integration [1].

Changed in ApprovalChecker.js [2]:

- const response = await OB.App.Request.mobileServiceRequest(
+ const response = await mobileServiceRequest(

The original threw exception if server is not available whereas the latter tries to handle it. Approval code is expecting this exception to handle offline.

---
[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/340 [^]
[2] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/b8fde8a7bf3a7beece33da5cff38204b8f1f9493#a5ccd333ab96571c23fbd8439b70cb4cfdfaf04c_14_15 [^]
(0129859)
hgbot (developer)
2021-06-28 15:47

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/576 [^]
(0129870)
hgbot (developer)
2021-06-28 17:26

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 7f67383e70ad7f773e6e5dcc7416ceb3b1231bd8
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 2021-06-28T15:25:16+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/7f67383e70ad7f773e6e5dcc7416ceb3b1231bd8 [^]

Fixes ISSUE-47215: Approval doesn't work in offline

Approval fails because of a change in mobileServiceRequest. It was
previously throwing an exception, which was then used as reference to
start offline approval. Now it doesn't throw an exception, so the result
state is checked and if status is -1, offline approval is used instead.

---
M web-jspack/org.openbravo.core2/src/core/security/ApprovalChecker.js
M web-jspack/org.openbravo.core2/src/core/security/__test__/ApprovalChecker.test.js
---
(0129871)
hgbot (developer)
2021-06-28 17:26

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/576 [^]

- Issue History
Date Modified Username Field Change
2021-06-23 09:22 jmelin New Issue
2021-06-23 09:22 jmelin Assigned To => Retail
2021-06-23 09:22 jmelin Triggers an Emergency Pack => No
2021-06-23 11:26 dmiguelez Status new => scheduled
2021-06-23 11:27 dmiguelez Resolution time => 1625608800
2021-06-23 11:27 dmiguelez Assigned To Retail => platform
2021-06-23 11:27 dmiguelez Status scheduled => acknowledged
2021-06-23 12:40 alostale Note Added: 0129738
2021-06-28 13:09 cberner Assigned To platform => cberner
2021-06-28 13:09 cberner Status acknowledged => scheduled
2021-06-28 13:09 cberner Relationship deleted depends on 0047256
2021-06-28 15:47 hgbot Note Added: 0129859
2021-06-28 16:22 cberner Regression level => Pre packaging ( pi )
2021-06-28 16:22 cberner Regression date => 2021-03-16
2021-06-28 16:22 cberner Regression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/b8fde8a7bf3a7beece33da5cff38204b8f1f9493#a5ccd333ab96571c23fbd8439b70cb4cfdfaf04c_14_15 [^]
2021-06-28 17:26 hgbot Resolution open => fixed
2021-06-28 17:26 hgbot Status scheduled => closed
2021-06-28 17:26 hgbot Note Added: 0129870
2021-06-28 17:26 hgbot Note Added: 0129871


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker