Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030690Retail ModulesWeb POSpublic2015-08-27 16:502015-09-29 17:38
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR15Q4RR15Q4 
migueldejuana
No
0030690: Update/fix of smaller issues related to multi-server behavior
When testing multi-server behavior the following was noted:
- the synchronizing button was not removed after log in this because there was a store server which was also supporting transactions, so only call models synchronizing for a main server
- an error was thrown if logging in on localhost while localhost was not part of the server list, this because all the requests went to the defined servers, the error was that the SessionActive call did not support cross origin
- the organization field of the server orgs only allowed the *
Define multiple main and store servers. Try to set organization in server organizations.

Do not define a server on localhost but login on localhost, context errors are shown.

To test multiserver behavior on a single linux server you can add the following in the hosts file:
127.0.0.1 local1.openbravo.com
127.0.0.1 local2.openbravo.com
127.0.0.1 products.openbravo.com
127.0.0.1 transactions.openbravo.com
127.0.0.1 store1.openbravo.com
127.0.0.1 store2.openbravo.com
No tags attached.
blocks defect 0030765 closed migueldejuana [HGVOL] Small problems with multiserver 
blocks feature request 0029912 closed mtaal WebPOS Transparent Multi-Server Environments 
Issue History
2015-08-27 16:50mtaalNew Issue
2015-08-27 16:50mtaalAssigned To => mtaal
2015-08-27 16:50mtaalTriggers an Emergency Pack => No
2015-08-27 17:40mtaalDescription Updatedbug_revision_view_page.php?rev_id=9280#r9280
2015-08-28 09:01hgbotCheckin
2015-08-28 09:01hgbotNote Added: 0079785
2015-08-28 09:01hgbotCheckin
2015-08-28 09:01hgbotNote Added: 0079786
2015-08-28 09:01hgbotCheckin
2015-08-28 09:01hgbotNote Added: 0079787
2015-08-28 09:02hgbotCheckin
2015-08-28 09:02hgbotNote Added: 0079788
2015-08-30 16:38hgbotCheckin
2015-08-30 16:38hgbotNote Added: 0079819
2015-08-30 16:38hgbotStatusnew => resolved
2015-08-30 16:38hgbotResolutionopen => fixed
2015-08-30 16:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1b52245d841ffb929d1dc4e30917f785a688e202 [^]
2015-09-07 09:12mtaalNote Added: 0080167
2015-09-07 09:12mtaalStatusresolved => new
2015-09-07 09:12mtaalResolutionfixed => open
2015-09-08 08:51hgbotCheckin
2015-09-08 08:51hgbotNote Added: 0080225
2015-09-08 08:51hgbotCheckin
2015-09-08 08:51hgbotNote Added: 0080227
2015-09-08 08:51hgbotCheckin
2015-09-08 08:51hgbotNote Added: 0080229
2015-09-08 08:51hgbotCheckin
2015-09-08 08:51hgbotNote Added: 0080231
2015-09-08 08:52hgbotCheckin
2015-09-08 08:52hgbotNote Added: 0080235
2015-09-09 08:52hgbotCheckin
2015-09-09 08:52hgbotNote Added: 0080254
2015-09-09 08:53hgbotCheckin
2015-09-09 08:53hgbotNote Added: 0080258
2015-09-09 10:07mtaalRelationship addedblocks 0030765
2015-09-09 10:08mtaalRelationship addedblocks 0029912
2015-09-28 18:06mtaalStatusnew => scheduled
2015-09-28 18:06mtaalNote Added: 0080674
2015-09-28 18:06mtaalStatusscheduled => resolved
2015-09-28 18:06mtaalFixed in Version => RR15Q4
2015-09-28 18:06mtaalResolutionopen => fixed
2015-09-28 18:07mtaalReview Assigned To => migueldejuana
2015-09-29 17:38migueldejuanaNote Added: 0080717
2015-09-29 17:38migueldejuanaStatusresolved => closed

Notes
(0079785)
hgbot   
2015-08-28 09:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 738a049500e2389486e8aa8389d78dd9cf13e040
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Aug 27 17:42:11 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/738a049500e2389486e8aa8389d78dd9cf13e040 [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Adds subclass of SessionActive servlet which supports CORS

---
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
A src/org/openbravo/mobile/core/login/MobileSessionActive.java
---
(0079786)
hgbot   
2015-08-28 09:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: f8d96319cbf132acdfabbabc2bf9beb16f25629a
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Aug 27 17:43:58 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f8d96319cbf132acdfabbabc2bf9beb16f25629a [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Handle the case that the address of a server already contains http://, [^] also send priority to the client

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginUtilsServlet.java
---
(0079787)
hgbot   
2015-08-28 09:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8821f716b68d5f5fb49bff9364102163cb5fe55c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Aug 27 17:44:31 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8821f716b68d5f5fb49bff9364102163cb5fe55c [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Allow all orgs of a client in the server orgs column/field

---
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0079788)
hgbot   
2015-08-28 09:02   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 5d639ef522cd8b09d27d5d99576343cb8dd21f48
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Aug 27 17:45:21 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5d639ef522cd8b09d27d5d99576343cb8dd21f48 [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Handle the case that store servers can also handle transactions, caused the sync button to remain displayed

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0079819)
hgbot   
2015-08-30 16:38   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 1b52245d841ffb929d1dc4e30917f785a688e202
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Aug 28 14:03:21 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1b52245d841ffb929d1dc4e30917f785a688e202 [^]

Fixes issue 30690: Update/fix of smaller issues related to multi-server behavior
Add a preference to control enablement of multi-server behavior

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/mobile/core/login/MobileCoreLoginUtilsServlet.java
---
(0080167)
mtaal   
2015-09-07 09:12   
testing some final changes
(0080225)
hgbot   
2015-09-08 08:51   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: a75bab5f120b0752ffde5bb54d888cb5f0ae9585
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Aug 31 10:05:08 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/a75bab5f120b0752ffde5bb54d888cb5f0ae9585 [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
When an error in token handling of authentication, forward to standard authentication

---
M src/org/openbravo/mobile/core/authenticate/MobileKeyAuthenticationManager.java
---
(0080227)
hgbot   
2015-09-08 08:51   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 5a80c56195c6b03362e9fdd892dfb6a8721ee144
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Sep 04 16:48:14 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/5a80c56195c6b03362e9fdd892dfb6a8721ee144 [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Prevent wrong show of message that synchronization was not done, prevent double
data sync success message

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0080229)
hgbot   
2015-09-08 08:51   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 1df45f5e6cc59e45cb467480df2f4e847ecdca17
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Sep 06 12:42:42 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/1df45f5e6cc59e45cb467480df2f4e847ecdca17 [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Added refresh token logic and preferences and new service definition, requestrouter
now uses indexOf to match service names

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M src/org/openbravo/mobile/core/authenticate/GetToken.java
M src/org/openbravo/mobile/core/authenticate/MobileAuthenticationKeyUtils.java
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0080231)
hgbot   
2015-09-08 08:51   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 82c497ae0a05133919a3f107b70dac810b8a8b23
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Sep 07 16:10:51 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/82c497ae0a05133919a3f107b70dac810b8a8b23 [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Solved typo/wrong name usage of localstorage property

---
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
---
(0080235)
hgbot   
2015-09-08 08:52   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d7f5ac4370672858e4f0901e76c4656b1bd7d11c
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Sep 06 12:46:26 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d7f5ac4370672858e4f0901e76c4656b1bd7d11c [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Added new/more specific service defs

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
---
(0080254)
hgbot   
2015-09-09 08:52   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: e9ce4261557c1fbee6c5fdbc4d1adf3ebbe1f541
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Sep 08 17:20:30 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/e9ce4261557c1fbee6c5fdbc4d1adf3ebbe1f541 [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Remove the previous offline ping, is handled in the requestrouter

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0080258)
hgbot   
2015-09-09 08:53   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a59ef4930afab77fc6f171f98523a91469ff84ed
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Sep 08 13:09:59 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a59ef4930afab77fc6f171f98523a91469ff84ed [^]

Related to issue 30690: Update/fix of smaller issues related to multi-server behavior
Add new service to mobile services

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
---
(0080674)
mtaal   
2015-09-28 18:06   
No more changes planned
(0080717)
migueldejuana   
2015-09-29 17:38   
Tested and reviewed in 2caa3ccb0a4c