Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033239Retail ModulesWeb POSpublic2016-06-13 16:202016-07-05 16:40
mtaal 
Sandrahuguet 
normalminorhave not tried
closedfixed 
5
 
RR16Q3 
AugustoMauch
No
0033239: Provide a proces to recreate the mobile server authentication key
The mobile server authentication key is a column in ad_client which is not visible to the end user. We should provide a process which allows an application admin to recreate the mobile server authentication key.

This process should be runnable through a popup window which can be started from the Client window.

The popup window should have the following content:

This process resets the authentication key of the client. This is a sensitive action which should be executed when none of the WebPOS clients is working. After this action all users need to relogin.

                    [OK] [CANCEL]

When the user presses ok the authentication key of the client should be recomputed. If it is possible to ask one more time to the user if he/she wants to execute the action that would be great. So a question: Are you sure that you want to recompute the client authentication key?

See the code here on how to generate a new key and put it in the right symmetric ds column:

https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/src/org/openbravo/mobile/core/authenticate/MobileAuthenticationKeyUtils.java#l135 [^]

The new process should only be executable by a client-admin.
See Description
No tags attached.
related to defect 00333553.0PR16Q4 closed caristu Openbravo ERP Potential security issue in Process Definitions 
related to defect 0033433 closed Sandrahuguet Retail Modules Create a new menu entry for recreate the mobile server authentication key process 
Issue History
2016-06-13 16:20mtaalNew Issue
2016-06-13 16:20mtaalAssigned To => mtaal
2016-06-13 16:20mtaalTriggers an Emergency Pack => No
2016-06-21 13:08mtaalAssigned Tomtaal => Sandrahuguet
2016-06-21 13:22mtaalDescription Updatedbug_revision_view_page.php?rev_id=12444#r12444
2016-06-21 13:22mtaalSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=12446#r12446
2016-06-22 17:24mtaalDescription Updatedbug_revision_view_page.php?rev_id=12456#r12456
2016-06-23 09:21SandrahuguetStatusnew => scheduled
2016-06-27 10:08SandrahuguetRelationship addedrelated to 0033355
2016-06-27 10:13hgbotCheckin
2016-06-27 10:13hgbotNote Added: 0087943
2016-06-27 10:13hgbotStatusscheduled => resolved
2016-06-27 10:13hgbotResolutionopen => fixed
2016-06-27 10:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/c73f80fd1a6bfa0933241bffa9e62a56f4fa4759 [^]
2016-06-27 11:15mtaalReview Assigned To => mtaal
2016-06-27 11:15mtaalTarget VersionRR16Q4 => RR16Q3
2016-06-28 12:50hgbotCheckin
2016-06-28 12:51hgbotNote Added: 0088045
2016-06-30 13:10AugustoMauchReview Assigned Tomtaal => AugustoMauch
2016-06-30 13:52hgbotCheckin
2016-06-30 13:52hgbotNote Added: 0088099
2016-06-30 18:42AugustoMauchNote Added: 0088115
2016-06-30 18:42AugustoMauchStatusresolved => new
2016-06-30 18:42AugustoMauchResolutionfixed => open
2016-07-01 09:43hgbotCheckin
2016-07-01 09:43hgbotNote Added: 0088132
2016-07-01 09:43hgbotCheckin
2016-07-01 09:43hgbotNote Added: 0088133
2016-07-01 09:43hgbotCheckin
2016-07-01 09:43hgbotNote Added: 0088134
2016-07-01 09:43hgbotCheckin
2016-07-01 09:43hgbotNote Added: 0088135
2016-07-01 09:45SandrahuguetStatusnew => scheduled
2016-07-01 09:45SandrahuguetStatusscheduled => resolved
2016-07-01 09:45SandrahuguetResolutionopen => fixed
2016-07-01 10:35hgbotCheckin
2016-07-01 10:35hgbotNote Added: 0088139
2016-07-01 11:26hgbotCheckin
2016-07-01 11:26hgbotNote Added: 0088142
2016-07-01 11:28SandrahuguetNote Added: 0088143
2016-07-01 13:19AugustoMauchNote Added: 0088150
2016-07-01 13:19AugustoMauchStatusresolved => closed
2016-07-05 16:40SandrahuguetRelationship addedrelated to 0033433

Notes
(0087943)
hgbot   
2016-06-27 10:13   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: c73f80fd1a6bfa0933241bffa9e62a56f4fa4759
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Mon Jun 27 10:12:02 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/c73f80fd1a6bfa0933241bffa9e62a56f4fa4759 [^]

Fixed issue 33239 proces to recreate the mobile server authentication key

Provide a new process in client window to recreate the mobile
server authentication key

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
M src/org/openbravo/retail/storeserver/synchronization/StoreSynchronizationComponentProvider.java
A src-db/database/model/modifiedTables/AD_CLIENT.xml
A src/org/openbravo/retail/storeserver/synchronization/process/RecreateMobileServerAuthKeyHandler.java
A web/org.openbravo.retail.storeserver.synchronization/js/recreateAuthKey.js
---
(0088045)
hgbot   
2016-06-28 12:50   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 12f3278f22c4e4d43ae4909ffb281d8ebfdc9881
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Tue Jun 28 12:49:14 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/12f3278f22c4e4d43ae4909ffb281d8ebfdc9881 [^]

related to issue 33239 run syncronized terminology

---
M src-db/database/sourcedata/AD_FIELD.xml
---
(0088099)
hgbot   
2016-06-30 13:52   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 1d8b0a3e0ca97291846ab21d05421ffaae566b2d
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Thu Jun 30 13:51:51 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/1d8b0a3e0ca97291846ab21d05421ffaae566b2d [^]

related to issue 33239 fixed help and description

---
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
(0088115)
AugustoMauch   
2016-06-30 18:42   
Some feedback has to be applied [1]

[1] https://docs.google.com/spreadsheets/d/1DgowL4n6tbRFMch7duxbmWMTHePOlCoE8iCkbnPPeSg/edit#gid=0 [^]
(0088132)
hgbot   
2016-07-01 09:43   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: c29f8fa2fcdce1aa727124303b2bfef90dc273f2
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Jul 01 09:42:46 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c29f8fa2fcdce1aa727124303b2bfef90dc273f2 [^]

related to issue 33239 recreate the mobile server authkey code review

new utilities method to generate authkey

---
M src/org/openbravo/mobile/core/authenticate/MobileAuthenticationKeyUtils.java
---
(0088133)
hgbot   
2016-07-01 09:43   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: f4ec59652554c5a883277e367d7f43a06e213c9e
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Jul 01 09:38:46 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/f4ec59652554c5a883277e367d7f43a06e213c9e [^]

related to issue 33239 fixed help and description

---
M src-db/database/sourcedata/OBUIAPP_PROCESS.xml
---
(0088134)
hgbot   
2016-07-01 09:43   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 96affa0ca02953865ba2ea93e1caaa8eb51a4e50
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Jul 01 09:39:26 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/96affa0ca02953865ba2ea93e1caaa8eb51a4e50 [^]

related to issue 33239 added displaylogic to recreate authkey button

---
M src-db/database/sourcedata/AD_FIELD.xml
---
(0088135)
hgbot   
2016-07-01 09:43   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: 9e7f713d1df916ebf4da7bec69dfbc33b5a5cb12
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Jul 01 09:41:30 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/9e7f713d1df916ebf4da7bec69dfbc33b5a5cb12 [^]

related to issue 33239 recreate the mobile server authkey code review

recreate the mobile server authkey code review:
added javadoc, new utilities method to generate authkey.

---
M src/org/openbravo/retail/storeserver/synchronization/process/RecreateMobileServerAuthKeyHandler.java
---
(0088139)
hgbot   
2016-07-01 10:35   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ed2b49504bfce3b62067a62ca44634d019e03336
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Jul 01 10:35:00 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ed2b49504bfce3b62067a62ca44634d019e03336 [^]

related to issue 33239 recreate the mobile server authkey code review

recreate the mobile server authkey code review: fixed javadoc

---
M src/org/openbravo/mobile/core/authenticate/MobileAuthenticationKeyUtils.java
---
(0088142)
hgbot   
2016-07-01 11:26   
Repository: erp/pmods/org.openbravo.retail.storeserver.synchronization
Changeset: b527444a9278bed96b1586d989d56fef49942c8d
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Fri Jul 01 11:25:33 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronization/rev/b527444a9278bed96b1586d989d56fef49942c8d [^]

related to issue 33239 fixed displaylogic

---
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
(0088143)
Sandrahuguet   
2016-07-01 11:28   
Documentation:
http://wiki.openbravo.com/wiki/How_to_Setup_MultiServer_Dev_Environment#Recreate_mobile_server_authentication_key [^]
(0088150)
AugustoMauch   
2016-07-01 13:19   
Code reviewed and verified in [1]@b527444a9278

[1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.storeserver.synchronizatio [^]