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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032856
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Mobile Procurementmajoralways2016-05-02 13:382016-05-24 16:06
ReporteraaroncaleroView Statuspublic 
Assigned ToRetail 
PriorityimmediateResolutionfixedFixed in VersionRR16Q2
StatusclosedFix in branchFixed in SCM revision3579d7ae5551
ProjectionnoneETAnoneTarget VersionRR16Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToOrekaria
Regression levelCoding ( Testing )
Regression date2016-02-26
Regression introduced in release
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/11fec6225502 [^]
Triggers an Emergency PackNo
Summary

0032856: Mobile Core depends on Posterminal to work

DescriptionWhen 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)
Steps To ReproduceUsing 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.
Proposed SolutionThe 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0032824 closedmigueldejuana Mobile Core depends on Posterminal to work 

-  Notes
(0086240)
hgbot (developer)
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 (developer)
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

- Issue History
Date Modified Username Field Change
2016-05-04 13:27 migueldejuana Type defect => backport
2016-05-04 13:27 migueldejuana Target Version => RR16Q2
2016-05-06 10:15 hgbot Checkin
2016-05-06 10:15 hgbot Note Added: 0086240
2016-05-06 10:15 hgbot Status scheduled => resolved
2016-05-06 10:15 hgbot Resolution open => fixed
2016-05-06 10:15 hgbot Fixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.mobile.core/rev/3579d7ae5551483de0a1616fcfbe6de353f8387c [^]
2016-05-06 10:18 migueldejuana Note Added: 0086242
2016-05-24 16:06 Orekaria Review Assigned To => Orekaria
2016-05-24 16:06 Orekaria Status resolved => closed
2016-05-24 16:06 Orekaria Fixed in Version => RR16Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker