Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031832Retail ModulesWeb POSpublic2016-01-05 18:212016-03-03 16:58
Orekaria 
Retail 
normalmajoralways
closedfixed 
5
 
RR16Q1RR16Q1 
marvintm
No
0031832: 401 errors
We are getting 401 (unauthorized) errors (most probably due to cashup)

A)
In the modules context
Execute the attached test

java.lang.AssertionError: (1) errors in the browser log:
[2016-01-05T18:17:26+0100] [SEVERE] http://127.0.0.1:8081/openbravo/org.openbravo.mobile.core.service.jsonrest/org.openbravo.retail.posterminal.ProcessCashClose [^] 0:0 Failed to load resource: the server responded with a status of 401 (Unauthorized)


B)
The issue can also be shown in the try-retail: https://ci.openbravo.com/job/try-ret-test-oracle-suite3/1137/testReport/junit/org.openbravo.test.mobile.retail.pack.selenium.tests.sharedpaymentmethods/SPMQuotationSharedPayments/test/ [^]

(1) errors in the browser log:
[2016-01-05T12:02:20+0000] [SEVERE] http://127.0.1.1/try-ret-test-oracle-suite3/org.openbravo.mobile.core.service.jsonrest/org.openbravo.mobile.core.login.ProfileUtils?authenticationClient=39363B0921BB4293B48383844325E84C&authenticationToken=J7utAlKzChUjLRrZ%2FsP0rg%3D%3D__%3B__E7ovQywJcPLl6oMHag0S5%2FBKlkLGy20pESC5gnh1bKxsQtjtRELsQJadPGXOxypfXnTJCbfJamaT8lSWFaf1v2Ov%2Ba%2B732WmbWcP%2B35pvf1RbDGAT7Fete9S%2B6p221yeo6eoQPvTsuXMcdS7t%2BRqXToEOQrwhrL8BKfYmGAxZ4z6qh35Jl8Y2r6IbejpaYPpm16TX0Xpa2ysKxRdW4maJWGTK7TVMdBcCOr62bV3zvbTwV3eRPuHb4cmv%2FJnNiNL [^] 0:0 Failed to load resource: the server responded with a status of 401 (Unauthorized)
No tags attached.
blocks defect 0031827 closed jorge-garcia 401 errors 
Issue History
2016-01-07 10:48OrekariaTypedefect => backport
2016-01-07 10:48OrekariaTarget Version => RR16Q1.1
2016-01-15 12:50OrekariaTarget VersionRR16Q1.1 => RR16Q1
2016-02-15 16:09hgbotCheckin
2016-02-15 16:09hgbotNote Added: 0084207
2016-02-15 16:09hgbotStatusscheduled => resolved
2016-02-15 16:09hgbotResolutionopen => fixed
2016-02-15 16:09hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/2c5ba1ce192fd9b47a1685d7c5e4155460d9cb13 [^]
2016-03-03 16:58marvintmReview Assigned To => marvintm
2016-03-03 16:58marvintmStatusresolved => closed
2016-03-03 16:58marvintmFixed in Version => RR16Q1

Notes
(0084207)
hgbot   
2016-02-15 16:09   
Repository: retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal
Changeset: 2c5ba1ce192fd9b47a1685d7c5e4155460d9cb13
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jan 15 10:47:16 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/2c5ba1ce192fd9b47a1685d7c5e4155460d9cb13 [^]

Fixed issue 31832 backport of issue 31827: 401 errors

The problem was that the session could be killed before the synchronization
process has finished.

The solution (specially in the cashup) is to wait to the end of the
synchronization process before the confimation popup (or the POS
hardware manager popup error) is shown.

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
---