Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033481Retail ModulesStoreServerpublic2016-07-14 11:552016-11-20 16:03
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR16Q4 
migueldejuana
No
0033481: Allow using different ip-address/hostname from browser than defined in the mobile server
Currently we use the url of the browser page to detect to which store server the user is connecting. We should use a different approach as the mobile server definition may use an external ip-address of a store while the webpos systems connect to an internal ip-address.
configure multiserver

http://wiki.openbravo.com/wiki/How_to_Setup_MultiServer_Dev_Environment#Setting_up_multiple_hostnames_for_localhost [^]

define a store with a url: store1.openbravo.com running on localhost

go to webpos using hostname 127.0.0.1
in the webposclient use a different way to find the current server of a user
No tags attached.
diff 33481-q33.diff (3,585) 2016-11-20 16:03
https://issues.openbravo.com/file_download.php?file_id=10077&type=bug
Issue History
2016-07-14 11:55mtaalNew Issue
2016-07-14 11:55mtaalAssigned To => mtaal
2016-07-14 11:55mtaalTriggers an Emergency Pack => No
2016-07-22 12:58hgbotCheckin
2016-07-22 12:58hgbotNote Added: 0088634
2016-07-22 12:58hgbotStatusnew => resolved
2016-07-22 12:58hgbotResolutionopen => fixed
2016-07-22 12:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/df83f68b8436bcb08658f70838d4f44559769ca1 [^]
2016-07-22 13:03hgbotCheckin
2016-07-22 13:03hgbotNote Added: 0088636
2016-07-24 16:17mtaalReview Assigned To => migueldejuana
2016-08-12 12:56migueldejuanaNote Added: 0089087
2016-08-12 12:56migueldejuanaStatusresolved => new
2016-08-12 12:56migueldejuanaResolutionfixed => open
2016-08-15 22:50hgbotCheckin
2016-08-15 22:50hgbotNote Added: 0089102
2016-08-15 22:50hgbotStatusnew => resolved
2016-08-15 22:50hgbotResolutionopen => fixed
2016-08-15 22:50hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/df83f68b8436bcb08658f70838d4f44559769ca1 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/00f12c409463504357a3ed4604967dfffaa8636f [^]
2016-08-18 08:43migueldejuanaNote Added: 0089197
2016-08-18 08:43migueldejuanaStatusresolved => closed
2016-11-20 16:03mtaalFile Added: 33481-q33.diff

Notes
(0088634)
hgbot   
2016-07-22 12:58   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: df83f68b8436bcb08658f70838d4f44559769ca1
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Jul 22 12:57:37 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/df83f68b8436bcb08658f70838d4f44559769ca1 [^]

Fixes issue 33481: Allow using different ip-address/hostname from browser than defined in the mobile server
In the login servlet when reading the servers and creating server json explicitly flag the current server.

---
M src/org/openbravo/retail/posterminal/LoginUtilsServlet.java
---
(0088636)
hgbot   
2016-07-22 13:03   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 9efbb43c5d5ddf42cd574a60fabd3a62dfe19fc8
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Jul 22 13:01:51 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/9efbb43c5d5ddf42cd574a60fabd3a62dfe19fc8 [^]

Related to issue 33481: Allow using different ip-address/hostname from browser than defined in the mobile server
Change ob-requestrouter to use the new currentServer flag which is set by the server when creating the mobile server json

MobileCoreLoginUtilsServlet: nicer to use a constant
ob-requestrouter: use the currentServer flag set when reading the mobile servers from the server, maintain default behavior if no current server could be determined directly using the store organization

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginUtilsServlet.java
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0089087)
migueldejuana   
2016-08-12 12:56   
we have currentServer and isCurrentServer. It is a bit confusing
(0089102)
hgbot   
2016-08-15 22:50   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 00f12c409463504357a3ed4604967dfffaa8636f
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Aug 15 22:49:55 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/00f12c409463504357a3ed4604967dfffaa8636f [^]

Fixes issue 33481: Allow using different ip-address/hostname from browser than defined in the mobile server
Renamed isCurrentServer to currentServer

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0089197)
migueldejuana   
2016-08-18 08:43   
Tested and reviewed