Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032856Retail ModulesMobile Procurementpublic2016-05-02 13:382016-05-24 16:06
aaroncalero 
Retail 
immediatemajoralways
closedfixed 
5
 
RR16Q2RR16Q2 
Orekaria
No
Coding ( Testing )
2016-02-26
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/11fec6225502 [^]
No
0032856: 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.
blocks defect 0032824 closed migueldejuana Mobile Core depends on Posterminal to work 
Issue History
2016-05-04 13:27migueldejuanaTypedefect => backport
2016-05-04 13:27migueldejuanaTarget Version => RR16Q2
2016-05-06 10:15hgbotCheckin
2016-05-06 10:15hgbotNote Added: 0086240
2016-05-06 10:15hgbotStatusscheduled => resolved
2016-05-06 10:15hgbotResolutionopen => fixed
2016-05-06 10:15hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.mobile.core/rev/3579d7ae5551483de0a1616fcfbe6de353f8387c [^]
2016-05-06 10:18migueldejuanaNote Added: 0086242
2016-05-24 16:06OrekariaReview Assigned To => Orekaria
2016-05-24 16:06OrekariaStatusresolved => closed
2016-05-24 16:06OrekariaFixed in Version => RR16Q2

Notes
(0086240)
hgbot   
2016-05-06 10:15   
Repository: retail/backports/3.0RR16Q2/org.openbravo.mobile.core
Changeset: 3579d7ae5551483de0a1616fcfbe6de353f8387c
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Fri May 06 10:15:02 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.mobile.core/rev/3579d7ae5551483de0a1616fcfbe6de353f8387c [^]

Fixed issue 0032856: Mobile Core depends on Posterminal to work

- Call kernel Application servlet instead of ApplicationsFormat(posterminal)
- Send login handler servicename for each mobile app
- Add default mobile.core login handler

---
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0086242)
migueldejuana   
2016-05-06 10:18   
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