Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032824Retail ModulesMobile Procurementpublic2016-05-02 13:382016-06-02 16:28
aaroncalero 
migueldejuana 
immediatemajoralways
closedfixed 
5
 
 
marvintm
Coding ( Testing )
2016-02-26
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/11fec6225502 [^]
No
0032824: Mobile Core depends on Posterminal to work
When a mobile application (not Posterminal) is installed (along with Mobile Core) and the user tries to log in the mobile application, the following error appears in the browser console:
xhr.js:43 GET http://localhost:8080/openbravo/org.openbravo.mobile.core/OBPOS_Main/ApplicationFormats?0.860780618590167 [^] 500 (Internal Server Error)
Using Mobile Procurement as example:
In a clean erp installation:
*Install Mobile Core and Mobile Procurement modules
*Configure a Mobile Procurement terminal (http://wiki.openbravo.com/wiki/Mobile_Procurement:Configuration_Guide [^])
*Go to the Mobile Procurement application url: http://<context>/openbravo/web/org.openbravo.mobile.procurement/?terminal=<configured [^] terminal>
Login in the application. Verify that the login process is stuck in the Reading Terminal Properties step.
Verify on the browser console that the error mentioned above is shown in an infinite loop.
Close the browser to prevent crashes.
The following line in mobile core forces a dependence to posterminal:
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/web/org.openbravo.mobile.core/source/model/ob-terminal-model.js#l72 [^]

If that line is reverted to:
applicationFormatUrl: '../../org.openbravo.mobile.core/OBCLKER_Kernel/Application',

Apparently the mobile application can login normally.
No tags attached.
depends on backport 0032856RR16Q2 closed Retail Mobile Core depends on Posterminal to work 
caused by design defect 0032356 closed migueldejuana Move getServices and getServers to mobile.core 
has duplicate defect 0032825 closed Retail Mobile Core depends on Posterminal to work 
Issue History
2016-05-02 13:38aaroncaleroNew Issue
2016-05-02 13:38aaroncaleroAssigned To => Retail
2016-05-02 13:38aaroncaleroTriggers an Emergency Pack => No
2016-05-02 17:43aaroncaleroRegression level => Coding ( Testing )
2016-05-02 17:43aaroncaleroRegression date => 2016-02-26
2016-05-02 17:43aaroncaleroRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/11fec6225502 [^]
2016-05-02 17:44aaroncaleroProposed Solution updated
2016-05-02 18:11aaroncaleroPriorityhigh => immediate
2016-05-02 18:37OrekariaRelationship addedcaused by 0032356
2016-05-02 18:38OrekariaStatusnew => acknowledged
2016-05-04 13:27migueldejuanaStatusacknowledged => scheduled
2016-05-04 13:27migueldejuanaAssigned ToRetail => migueldejuana
2016-05-04 16:30hgbotCheckin
2016-05-04 16:30hgbotNote Added: 0086183
2016-05-04 16:30hgbotStatusscheduled => resolved
2016-05-04 16:30hgbotResolutionopen => fixed
2016-05-04 16:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.procurement/rev/4625d9d8c2407f4763df31b96310e99b6d9d0312 [^]
2016-05-04 19:35hgbotCheckin
2016-05-04 19:35hgbotNote Added: 0086190
2016-05-04 19:35hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.procurement/rev/4625d9d8c2407f4763df31b96310e99b6d9d0312 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8a544420531c18b425d014f9679f5591cfaf2c56 [^]
2016-05-04 19:35hgbotCheckin
2016-05-04 19:35hgbotNote Added: 0086191
2016-05-04 19:35hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8a544420531c18b425d014f9679f5591cfaf2c56 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/71f14286076f32dc6f33faddb5fb1bd9a70152fd [^]
2016-05-04 19:35hgbotCheckin
2016-05-04 19:35hgbotNote Added: 0086192
2016-05-04 19:35hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/71f14286076f32dc6f33faddb5fb1bd9a70152fd [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f362383ba3f1aed59b11a6964bcbe094d3acdaff [^]
2016-05-06 10:16hgbotCheckin
2016-05-06 10:16hgbotNote Added: 0086241
2016-05-06 10:16hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f362383ba3f1aed59b11a6964bcbe094d3acdaff [^] => http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/35db056d3461184896bfed83359d064c72ee87df [^]
2016-05-17 15:34ranjith_qualiantech_comRelationship addedhas duplicate 0032825
2016-06-01 10:38dmitry_mezentsevNote Added: 0086884
2016-06-02 16:28marvintmReview Assigned To => marvintm
2016-06-02 16:28marvintmStatusresolved => closed

Notes
(0086183)
hgbot   
2016-05-04 16:30   
Repository: erp/pmods/org.openbravo.mobile.procurement
Changeset: 4625d9d8c2407f4763df31b96310e99b6d9d0312
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed May 04 16:29:46 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.procurement/rev/4625d9d8c2407f4763df31b96310e99b6d9d0312 [^]

Fixed issue 0032824: Mobile Core depends on Posterminal to work

- Add procurement login handler service

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
---
(0086190)
hgbot   
2016-05-04 19:35   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 8a544420531c18b425d014f9679f5591cfaf2c56
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed May 04 16:27:05 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/8a544420531c18b425d014f9679f5591cfaf2c56 [^]

Fixed issue 0032824: Mobile Core depends on Posterminal to work

- Add procurement login handler to services and remove ApplicationsFormats
- Call kernel Application servlet instead of ApplicationsFormat(posterminal)
- Send login handler servicename for each mobile app

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0086191)
hgbot   
2016-05-04 19:35   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 71f14286076f32dc6f33faddb5fb1bd9a70152fd
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed May 04 18:35:02 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/71f14286076f32dc6f33faddb5fb1bd9a70152fd [^]

Fixed issue 0032824: Mobile Core depends on Posterminal to work

- Add default mobile.core login handler

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
---
(0086192)
hgbot   
2016-05-04 19:35   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: f362383ba3f1aed59b11a6964bcbe094d3acdaff
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed May 04 16:32:17 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f362383ba3f1aed59b11a6964bcbe094d3acdaff [^]

Fixed issue 0032824: Mobile Core depends on Posterminal to work

- Add ApplicationsFormat service and change POSLoginHandler replacing / with . because now we send 'loginHandlerUrl attribute'

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
---
(0086241)
hgbot   
2016-05-06 10:16   
Repository: retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal
Changeset: 35db056d3461184896bfed83359d064c72ee87df
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Fri May 06 10:16:22 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/35db056d3461184896bfed83359d064c72ee87df [^]

Fixed issue 0032824: Mobile Core depends on Posterminal to work

- Add ApplicationsFormat service and change POSLoginHandler replacing / with . because now we send 'loginHandlerUrl attribute'

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
---
(0086884)
dmitry_mezentsev   
2016-06-01 10:38   
Not closed for 28 days!!!
Please react ASAP.