Openbravo Issue Tracking System - Retail Modules |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0032571 | Retail Modules | Web POS | public | 2016-04-01 13:36 | 2016-06-02 18:56 |
|
| Reporter | asiermartirena | |
| Assigned To | jorge-garcia | |
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | RR16Q3 | |
| 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 | 0032571: [SERQA 867] There is an if condition in mobile core that checks conditions about the logging terminal |
| Description | There is an if condition in mobile core that checks if the terminal in which is logging (OB.MobileApp.model.get('terminalName')) is different to the terminal stored in the window (window.localStorage.getItem('loggedTerminalName')) and logs out in that case.
This clause is necessary for Web POS, but other applications are not logged to a terminal, so if an user has cached the session and stored the terminal in the localStorage and tries to login to the mobile.warehouse application this condition logs out and the user must login again. |
| Steps To Reproduce | Login in Web POS.
Browse to the following url:
http://localhost:8080/openbravo/web/org.openbravo.mobile.warehouse/ [^]
The web is redirected to login window, and should go to the application, because has a session in cache. |
| Proposed Solution | |
| Additional Information | |
| Tags | SER-QA |
| Relationships | | depends on | feature request | 0032582 | | closed | jorge-garcia | Stabilization: Create an API for the localStorage |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2016-04-01 13:36 | asiermartirena | New Issue | |
| 2016-04-01 13:36 | asiermartirena | Assigned To | => Retail |
| 2016-04-01 13:36 | asiermartirena | OBNetwork customer | => No |
| 2016-04-01 13:36 | asiermartirena | Triggers an Emergency Pack | => No |
| 2016-04-01 14:01 | asiermartirena | Summary | There is an if condition in mobile core that checks conditions about the logging terminal => [SERQA 867] There is an if condition in mobile core that checks conditions about the logging terminal |
| 2016-04-01 14:01 | asiermartirena | Tag Attached: SER-QA | |
| 2016-04-04 14:30 | Orekaria | Relationship added | depends on 0032582 |
| 2016-04-04 14:30 | Orekaria | Status | new => acknowledged |
| 2016-04-04 14:33 | Orekaria | Note Added: 0085416 | |
| 2016-04-04 14:33 | Orekaria | Proposed Solution updated | |
| 2016-04-04 14:34 | Orekaria | Note Edited: 0085416 | bug_revision_view_page.php?bugnote_id=0085416#r11643 |
| 2016-04-14 16:03 | Orekaria | Status | acknowledged => scheduled |
| 2016-04-14 16:03 | Orekaria | Assigned To | Retail => jorge-garcia |
| 2016-05-05 09:00 | hgbot | Checkin | |
| 2016-05-05 09:00 | hgbot | Note Added: 0086196 | |
| 2016-05-05 09:04 | jorge-garcia | Note Added: 0086198 | |
| 2016-05-05 09:04 | jorge-garcia | Status | scheduled => resolved |
| 2016-05-05 09:04 | jorge-garcia | Fixed in Version | => RR16Q3 |
| 2016-05-05 09:04 | jorge-garcia | Resolution | open => fixed |
| 2016-06-01 10:37 | dmitry_mezentsev | Note Added: 0086882 | |
| 2016-06-02 18:56 | marvintm | Review Assigned To | => marvintm |
| 2016-06-02 18:56 | marvintm | Status | resolved => closed |
|
Notes |
|
|
(0085416)
|
|
Orekaria
|
2016-04-04 14:33
(edited on: 2016-04-04 14:34) |
|
We will fix it creating a localStorage API. See related issue
The proposed solution has been removed, not to cause missunderstandings:
Move the following code from mobile.core to retail.posterminal:
// check if terminal id has changed
if (window.localStorage.getItem('loggedTerminalName') && (window.localStorage.getItem('loggedTerminalName') !== OB.MobileApp.model.get('terminalName'))) {
console.warn(OB.UTIL.argumentsToStringifyed("terminal changed (" + window.localStorage.getItem('loggedTerminalName') + " -> " + OB.MobileApp.model.get('terminalName') + ")"));
OB.info('Terminal has been changed. Resetting database and local storage information.');
window.localStorage.clear();
window.localStorage.setItem('terminalName', OB.MobileApp.model.get('terminalName'));
OB.MobileApp.model.logout();
return;
}
|
|
|
|
(0086196)
|
|
hgbot
|
|
2016-05-05 09:00
|
|
Repository: tools/automation/pi-mobile
Changeset: 4ac8d6b5891848fb346da6ca710b0df0b3df6dab
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed May 04 15:17:31 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/4ac8d6b5891848fb346da6ca710b0df0b3df6dab [^]
Verifies issue 32571: [SERQA 867] There is an if condition in mobile core that
checks conditions about the logging terminal
Added test I32571_NavigateFromPOSToProcurementDirectly.
---
M src-test/org/openbravo/test/mobile/common/selenium/utils/ApplicationWindow.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/procurement/I32571_NavigateFromPOSToProcurementDirectly.java
---
|
|
|
|
(0086198)
|
|
jorge-garcia
|
|
2016-05-05 09:04
|
|
|
|
|
|
Not closed for 27 days!!!
Please react ASAP. |
|