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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0027554
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2014-09-08 15:362014-11-19 17:13
ReportermtaalView Statuspublic 
Assigned ToOrekaria 
PrioritynormalResolutionfixedFixed in VersionRR14Q3
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0027554: When switching from backend to WebPOS first an error is shown and then the login page is shown

DescriptionError is shown when going from the backoffice to WebPOS.
Steps To ReproduceSteps 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)
Proposed Solution- Do not show an exception or error
- show login page or login directly if all is fine
TagsNo tags attached.
Attached Filespng file icon Selection_002.png [^] (74,476 bytes) 2014-09-08 15:36


png file icon Selection_003.png [^] (122,853 bytes) 2014-09-08 15:37


diff file icon 27554 SwitchBetweenERPAndWebPOS.diff [^] (6,556 bytes) 2014-09-09 20:39 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on design defect 0027466RR14Q4 closedOrekaria Stabilization: The route (OBRoute) object should be use to redirect to the proper webpage 
blocks feature request 0027329 newRetail Stabilization: Overhaul the loading process (since the url is entered until the webpos has loaded) 
causes defect 0028185RR14Q3.1 closedOrekaria When the backend throws an 'JSONException' the mobile application wrongly performs a logout 
causes defect 0028241RR14Q4 closedOrekaria Context change detection doesn't work anymore 

-  Notes
(0070016)
mtaal (manager)
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 (administrator)
2014-09-09 20:39

This issue can be solved in Q3.0 with the attached patch
(0070061)
hgbot (developer)
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 (administrator)
2014-09-15 19:42

This patch is not necessary in Q4 because its fixed with the isssue 27466 changesets
(0070510)
migueldejuana (developer)
2014-09-29 17:51

tested and reviewed in 130ef2db3366

- Issue History
Date Modified Username Field Change
2014-09-08 15:36 mtaal New Issue
2014-09-08 15:36 mtaal Assigned To => Orekaria
2014-09-08 15:36 mtaal Triggers an Emergency Pack => No
2014-09-08 15:36 mtaal File Added: Selection_002.png
2014-09-08 15:37 mtaal File Added: Selection_003.png
2014-09-08 15:37 mtaal Note Added: 0070016
2014-09-09 20:39 Orekaria File Added: 27554 SwitchBetweenERPAndWebPOS.diff
2014-09-09 20:39 Orekaria Note Added: 0070060
2014-09-09 20:40 Orekaria Status new => scheduled
2014-09-09 20:40 Orekaria fix_in_branch => pi
2014-09-09 20:41 Orekaria Status scheduled => feedback
2014-09-09 22:06 hgbot Checkin
2014-09-09 22:06 hgbot Note Added: 0070061
2014-09-09 22:08 Orekaria Relationship added blocks 0027329
2014-09-09 22:27 Orekaria Relationship added depends on 0027466
2014-09-15 19:42 Orekaria Note Added: 0070128
2014-09-22 16:19 mtaal Target Version RR14Q4 =>
2014-09-22 16:19 mtaal fix_in_branch pi =>
2014-09-25 09:59 Orekaria Status feedback => scheduled
2014-09-25 09:59 Orekaria fix_in_branch => pi
2014-09-25 10:01 Orekaria Status scheduled => resolved
2014-09-25 10:01 Orekaria Fixed in Version => RR14Q3
2014-09-25 10:01 Orekaria Resolution open => fixed
2014-09-29 17:51 migueldejuana Review Assigned To => migueldejuana
2014-09-29 17:51 migueldejuana Note Added: 0070510
2014-09-29 17:51 migueldejuana Status resolved => closed
2014-11-04 09:08 Orekaria Relationship added causes 0028060
2014-11-17 12:40 Orekaria Relationship added causes 0028185
2014-11-19 17:13 Orekaria Relationship deleted causes 0028060
2014-11-20 17:29 Orekaria Relationship added related to 0028241
2014-11-20 17:35 Orekaria Relationship replaced causes 0028241


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker