Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0032442 | Retail Modules | Web POS | public | 2016-03-09 11:30 | 2016-03-16 16:46 |
Reporter | mtaal | ||||
Assigned To | migueldejuana | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | RR16Q2 | Fixed in Version | RR16Q2 | ||
Merge Request Status | |||||
Review Assigned To | mtaal | ||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0032442: Prevent sourceversion check in case of multi-server when doing requests on other server | ||||
Description | When doing datasource requests from WebPOS to the server the server will compute the sourceversion: https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/b085729eb10c/src/org/openbravo/mobile/core/process/JSONProcessSimple.java#l62 [^] When there are multiple servers it is possible that the store server has a different js version than the server. This can happen when updating the central server before the store server. As we only can support backward compatible changes this is not a problem by itself. Therefore the source version check should only be done on the server from which the client side code is loaded. | ||||
Steps To Reproduce | 1) install multiple servers http://wiki.openbravo.com/wiki/Retail:Store_Server#Developer_Guide [^] 2) set all remote prefs http://wiki.openbravo.com/wiki/Retail:Configuration_Guide#Remote_Data_Preferences [^] 3) set the central server to be the one which provides ticket loading 4) login to webpos 5) query for tickets 6) check that the central server requests contain the sourceversion in the json | ||||
Proposed Solution | I think that we should compute the sourceversion less often in case of remote prefs. For example we can only compute it once for each session. That could be a change on the server side code in JSONProcessSimple. On the client side in ob-datasource.js the context check is fine that should happen. However, sourceversion check ([1]) should only happen for the requests which are going to the same location from which the code was loaded. [1] https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/b085729eb10c/web/org.openbravo.mobile.core/source/data/ob-datasource.js#l36 [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-03-09 11:30 | mtaal | New Issue | |||
2016-03-09 11:30 | mtaal | Assigned To | => migueldejuana | ||
2016-03-09 11:30 | mtaal | OBNetwork customer | => No | ||
2016-03-09 11:30 | mtaal | Triggers an Emergency Pack | => No | ||
2016-03-15 15:57 | hgbot | Checkin | |||
2016-03-15 15:57 | hgbot | Note Added: 0084991 | |||
2016-03-15 15:57 | hgbot | Status | new => resolved | ||
2016-03-15 15:57 | hgbot | Resolution | open => fixed | ||
2016-03-15 15:57 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2bc0dbcc2429c27370f69b0c888ec1a3b19c2095 [^] | ||
2016-03-16 11:43 | mtaal | Review Assigned To | => mtaal | ||
2016-03-16 16:46 | mtaal | Note Added: 0085013 | |||
2016-03-16 16:46 | mtaal | Status | resolved => closed | ||
2016-03-16 16:46 | mtaal | Fixed in Version | => RR16Q2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|