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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033481
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] StoreServerminorhave not tried2016-07-14 11:552016-11-20 16:03
ReportermtaalView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision00f12c409463
ProjectionnoneETAnoneTarget VersionRR16Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033481: Allow using different ip-address/hostname from browser than defined in the mobile server

DescriptionCurrently 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.
Steps To Reproduceconfigure 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
Proposed Solutionin the webposclient use a different way to find the current server of a user
TagsNo tags attached.
Attached Filesdiff file icon 33481-q33.diff [^] (3,585 bytes) 2016-11-20 16:03 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0088634)
hgbot (developer)
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 (developer)
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 (developer)
2016-08-12 12:56

we have currentServer and isCurrentServer. It is a bit confusing
(0089102)
hgbot (developer)
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 (developer)
2016-08-18 08:43

Tested and reviewed

- Issue History
Date Modified Username Field Change
2016-07-14 11:55 mtaal New Issue
2016-07-14 11:55 mtaal Assigned To => mtaal
2016-07-14 11:55 mtaal Triggers an Emergency Pack => No
2016-07-22 12:58 hgbot Checkin
2016-07-22 12:58 hgbot Note Added: 0088634
2016-07-22 12:58 hgbot Status new => resolved
2016-07-22 12:58 hgbot Resolution open => fixed
2016-07-22 12:58 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/df83f68b8436bcb08658f70838d4f44559769ca1 [^]
2016-07-22 13:03 hgbot Checkin
2016-07-22 13:03 hgbot Note Added: 0088636
2016-07-24 16:17 mtaal Review Assigned To => migueldejuana
2016-08-12 12:56 migueldejuana Note Added: 0089087
2016-08-12 12:56 migueldejuana Status resolved => new
2016-08-12 12:56 migueldejuana Resolution fixed => open
2016-08-15 22:50 hgbot Checkin
2016-08-15 22:50 hgbot Note Added: 0089102
2016-08-15 22:50 hgbot Status new => resolved
2016-08-15 22:50 hgbot Resolution open => fixed
2016-08-15 22:50 hgbot Fixed in SCM revision http://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:43 migueldejuana Note Added: 0089197
2016-08-18 08:43 migueldejuana Status resolved => closed
2016-11-20 16:03 mtaal File Added: 33481-q33.diff


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker