Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039774 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2018-12-10 14:04 | 2019-01-08 10:12 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | marvintm | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 997ca0fac186 | ||||
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 | migueldejuana | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0039774: ExternalOrderLoader should establish the context according to the POS Terminal specified in the request | |||||||
Description | Currently the ExternalOrderLoader is establishing the context according to the default organization and default role of the specified user. This behaviour means that it is not possible to use the same user for requests to terminals belonging to different clients, or even different organizations if the assortment is not commonly accesible by all of them. Instead, the context should be established according to the same rules of the POSLoginHandler, so the current client and organization should be the ones to which the specified POS Terminal belongs to. | |||||||
Steps To Reproduce | Configure different clients (or organizations), and create terminals for each of them. Execute ExternalOrderLoader requests to both terminals. Verify that the context is set according to the user, which means that the client/organization is not properly set when the terminal specified belongs to a client/organization. | |||||||
Proposed Solution | - ExternalOrderLoader should first validate that the specified user has access to the client and org of the specified POS Terminal (same validation currently done in the POSLoginHandler) - If it has, then the context should be reset to this client/org, before executing the rest of the process | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||||||||||||||||
|
Notes | |
(0108621) hgbot (developer) 2018-12-14 15:25 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 997ca0fac186ef6b28884b20bd29f8720f68a76a Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Fri Dec 14 13:20:33 2018 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/997ca0fac186ef6b28884b20bd29f8720f68a76a [^] Fixed issue 39774: ExternalOrderLoader will reset the context according to the terminal. - POSTerminal will be read without filters, to ensure that current context doesn't affect the query. - Org+Client will be set to the ones in the terminal - Role will be set using the POSLoginHandler query --- M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java M src/org/openbravo/retail/posterminal/POSLoginHandler.java --- |
(0108622) hgbot (developer) 2018-12-14 15:25 |
Repository: tools/automation/pi-mobile Changeset: 541044ae3c9c9f2806d310636488c9f147e24462 Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Fri Dec 14 13:21:58 2018 +0100 URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/541044ae3c9c9f2806d310636488c9f147e24462 [^] Related to issue 39774: contextInfo will not be detected as a difference, because now ExternalOrderLoader may be changing the context. --- M src-test/org/openbravo/test/mobile/retail/pack/webservice/tests/orderloader/RetailOrderLoaderTest.java --- |
(0108632) migueldejuana (developer) 2018-12-17 10:30 |
Reviewed |
Issue History | |||
Date Modified | Username | Field | Change |
2018-12-10 14:04 | marvintm | New Issue | |
2018-12-10 14:04 | marvintm | Assigned To | => Retail |
2018-12-10 14:04 | marvintm | Resolution time | => 1545606000 |
2018-12-10 14:04 | marvintm | Triggers an Emergency Pack | => No |
2018-12-10 14:09 | rafaroda | Issue Monitored: rafaroda | |
2018-12-10 15:28 | javierRodriguez | Assigned To | Retail => javierRodriguez |
2018-12-10 15:28 | javierRodriguez | Status | new => scheduled |
2018-12-14 15:25 | hgbot | Checkin | |
2018-12-14 15:25 | hgbot | Note Added: 0108621 | |
2018-12-14 15:25 | hgbot | Status | scheduled => resolved |
2018-12-14 15:25 | hgbot | Resolution | open => fixed |
2018-12-14 15:25 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/997ca0fac186ef6b28884b20bd29f8720f68a76a [^] |
2018-12-14 15:25 | hgbot | Checkin | |
2018-12-14 15:25 | hgbot | Note Added: 0108622 | |
2018-12-14 15:26 | marvintm | Assigned To | javierRodriguez => marvintm |
2018-12-17 10:30 | migueldejuana | Review Assigned To | => migueldejuana |
2018-12-17 10:30 | migueldejuana | Note Added: 0108632 | |
2018-12-17 10:30 | migueldejuana | Status | resolved => closed |
2018-12-17 11:11 | rafaroda | Relationship added | related to 0039813 |
2018-12-19 10:08 | rafaroda | Relationship added | related to 0033307 |
2019-01-08 10:12 | gorkaion | Issue cloned | 0039879 |
2019-01-08 10:12 | gorkaion | Relationship added | related to 0039879 |
Copyright © 2000 - 2009 MantisBT Group |