Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027554Retail ModulesWeb POSpublic2014-09-08 15:362014-11-19 17:13
mtaal 
Orekaria 
normalmajorhave not tried
closedfixed 
5
 
RR14Q3 
migueldejuana
No
0027554: When switching from backend to WebPOS first an error is shown and then the login page is shown
Error is shown when going from the backoffice to WebPOS.
Steps to reproduce:
- login into the backend
- then change the url in the top to go to webpos VBS-1
- error box is shown (see attachment), many NPEs in the backend

For example:
a3196480 6605749 [http-8080-5] ERROR org.openbravo.mobile.core.process.JSONRowConverter - Error in JSON process
java.lang.NullPointerException
    at org.openbravo.retail.posterminal.term.PriceListVersion.getQuery(PriceListVersion.java:31)
    at org.openbravo.mobile.core.process.ProcessHQLQuery.exec(ProcessHQLQuery.java:63)
    at org.openbravo.mobile.core.process.SecuredJSONProcess.secureExec(SecuredJSONProcess.java:39)
    at org.openbravo.mobile.core.process.MobileService.execClassName(MobileService.java:154)
    at org.openbravo.mobile.core.process.MobileService.doGetOrPost(MobileService.java:77)
    at org.openbravo.mobile.core.process.MobileService.doGet(MobileService.java:42)
- Do not show an exception or error
- show login page or login directly if all is fine
No tags attached.
depends on design defect 0027466RR14Q4 closed Orekaria Stabilization: The route (OBRoute) object should be use to redirect to the proper webpage 
blocks feature request 0027329 new Retail Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded) 
causes defect 0028185RR14Q3.1 closed Orekaria When the backend throws an 'JSONException' the mobile application wrongly performs a logout 
causes defect 0028241RR14Q4 closed Orekaria Context change detection doesn't work anymore 
png Selection_002.png (74,476) 2014-09-08 15:36
https://issues.openbravo.com/file_download.php?file_id=7219&type=bug
png

png Selection_003.png (122,853) 2014-09-08 15:37
https://issues.openbravo.com/file_download.php?file_id=7220&type=bug
png

diff 27554 SwitchBetweenERPAndWebPOS.diff (6,556) 2014-09-09 20:39
https://issues.openbravo.com/file_download.php?file_id=7230&type=bug
Issue History
2014-09-08 15:36mtaalNew Issue
2014-09-08 15:36mtaalAssigned To => Orekaria
2014-09-08 15:36mtaalTriggers an Emergency Pack => No
2014-09-08 15:36mtaalFile Added: Selection_002.png
2014-09-08 15:37mtaalFile Added: Selection_003.png
2014-09-08 15:37mtaalNote Added: 0070016
2014-09-09 20:39OrekariaFile Added: 27554 SwitchBetweenERPAndWebPOS.diff
2014-09-09 20:39OrekariaNote Added: 0070060
2014-09-09 20:40OrekariaStatusnew => scheduled
2014-09-09 20:40Orekariafix_in_branch => pi
2014-09-09 20:41OrekariaStatusscheduled => feedback
2014-09-09 22:06hgbotCheckin
2014-09-09 22:06hgbotNote Added: 0070061
2014-09-09 22:08OrekariaRelationship addedblocks 0027329
2014-09-09 22:27OrekariaRelationship addeddepends on 0027466
2014-09-15 19:42OrekariaNote Added: 0070128
2014-09-22 16:19mtaalTarget VersionRR14Q4 =>
2014-09-22 16:19mtaalfix_in_branchpi =>
2014-09-25 09:59OrekariaStatusfeedback => scheduled
2014-09-25 09:59Orekariafix_in_branch => pi
2014-09-25 10:01OrekariaStatusscheduled => resolved
2014-09-25 10:01OrekariaFixed in Version => RR14Q3
2014-09-25 10:01OrekariaResolutionopen => fixed
2014-09-29 17:51migueldejuanaReview Assigned To => migueldejuana
2014-09-29 17:51migueldejuanaNote Added: 0070510
2014-09-29 17:51migueldejuanaStatusresolved => closed
2014-11-04 09:08OrekariaRelationship addedcauses 0028060
2014-11-17 12:40OrekariaRelationship addedcauses 0028185
2014-11-19 17:13OrekariaRelationship deletedcauses 0028060
2014-11-20 17:29OrekariaRelationship addedrelated to 0028241
2014-11-20 17:35OrekariaRelationship replacedcauses 0028241

Notes
(0070016)
mtaal   
2014-09-08 15:37   
When going directly to the webpos url:
http://localhost:8080/openbravo/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^]

javascript errors are encountered, when then pressing F5 the green box is shown.
(0070060)
Orekaria   
2014-09-09 20:39   
This issue can be solved in Q3.0 with the attached patch
(0070061)
hgbot   
2014-09-09 22:06   
Repository: tools/automation/pi-mobile
Changeset: e62a721c2fb4d9e9ca1759a9ebf2ac580a1f9abc
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue Sep 09 22:05:20 2014 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/e62a721c2fb4d9e9ca1759a9ebf2ac580a1f9abc [^]

Related to issue 27554: 2 test have been added to test the switching between the WebPOS session and the ERP session and back to the WebPOS session
- I27554_SwitchToERPAndBackToWebPOSSameAccount
- I27554_SwitchToERPAndBackToWebPOSDifferentAccount
- Note: a tomcat exception is thrown in the different account test

---
M src-test/org/openbravo/retail/integrationtest/tests/issues/RetailIssuesTestSuite.java
A src-test/org/openbravo/retail/integrationtest/tests/issues/I27554_SwitchToERPAndBackToWebPOSDifferentAccount.java
A src-test/org/openbravo/retail/integrationtest/tests/issues/I27554_SwitchToERPAndBackToWebPOSSameAccount.java
---
(0070128)
Orekaria   
2014-09-15 19:42   
This patch is not necessary in Q4 because its fixed with the isssue 27466 changesets
(0070510)
migueldejuana   
2014-09-29 17:51   
tested and reviewed in 130ef2db3366