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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032824
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Mobile Procurementmajoralways2016-05-02 13:382016-06-02 16:28
ReporteraaroncaleroView Statuspublic 
Assigned Tomigueldejuana 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision35db056d3461
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
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

0032824: 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 ]
depends on backport 0032856RR16Q2 closedRetail Mobile Core depends on Posterminal to work 
caused by design defect 0032356 closedmigueldejuana Move getServices and getServers to mobile.core 
has duplicate defect 0032825 closedRetail Mobile Core depends on Posterminal to work 

-  Notes
(0086183)
hgbot (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
2016-06-01 10:38

Not closed for 28 days!!!
Please react ASAP.

- Issue History
Date Modified Username Field Change
2016-05-02 13:38 aaroncalero New Issue
2016-05-02 13:38 aaroncalero Assigned To => Retail
2016-05-02 13:38 aaroncalero Triggers an Emergency Pack => No
2016-05-02 17:43 aaroncalero Regression level => Coding ( Testing )
2016-05-02 17:43 aaroncalero Regression date => 2016-02-26
2016-05-02 17:43 aaroncalero Regression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/11fec6225502 [^]
2016-05-02 17:44 aaroncalero Proposed Solution updated
2016-05-02 18:11 aaroncalero Priority high => immediate
2016-05-02 18:37 Orekaria Relationship added caused by 0032356
2016-05-02 18:38 Orekaria Status new => acknowledged
2016-05-04 13:27 migueldejuana Status acknowledged => scheduled
2016-05-04 13:27 migueldejuana Assigned To Retail => migueldejuana
2016-05-04 16:30 hgbot Checkin
2016-05-04 16:30 hgbot Note Added: 0086183
2016-05-04 16:30 hgbot Status scheduled => resolved
2016-05-04 16:30 hgbot Resolution open => fixed
2016-05-04 16:30 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.procurement/rev/4625d9d8c2407f4763df31b96310e99b6d9d0312 [^]
2016-05-04 19:35 hgbot Checkin
2016-05-04 19:35 hgbot Note Added: 0086190
2016-05-04 19:35 hgbot Fixed in SCM revision http://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:35 hgbot Checkin
2016-05-04 19:35 hgbot Note Added: 0086191
2016-05-04 19:35 hgbot Fixed in SCM revision http://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:35 hgbot Checkin
2016-05-04 19:35 hgbot Note Added: 0086192
2016-05-04 19:35 hgbot Fixed in SCM revision http://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:16 hgbot Checkin
2016-05-06 10:16 hgbot Note Added: 0086241
2016-05-06 10:16 hgbot Fixed in SCM revision http://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:34 ranjith_qualiantech_com Relationship added has duplicate 0032825
2016-06-01 10:38 dmitry_mezentsev Note Added: 0086884
2016-06-02 16:28 marvintm Review Assigned To => marvintm
2016-06-02 16:28 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker