Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027200Retail ModulesWeb POSpublic2014-07-25 12:362014-09-25 21:30
Orekaria 
Orekaria 
normalmajorhave not tried
closedfixed 
5
 
RR14Q4 
mtaal
No
0027200: Stabilization: Current user/role has no access to class org.openbravo.retail.posterminal.term.Terminal
This error shown by the WebPOS, but there is also a trace in the tomcat log

2014-07-25 07:38:28,253 [TP-Processor5] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.CashMgmtDropEvents
2014-07-25 07:38:28,266 [TP-Processor5] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.BusinessPartner
2014-07-25 07:39:04,589 [TP-Processor7] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.CashMgmtDepositEvents
2014-07-25 07:39:04,634 [TP-Processor7] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.BusinessPartner
2014-07-25 07:39:04,713 [TP-Processor5] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.Terminal
2014-07-25 07:39:04,725 [TP-Processor1] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.PriceList
2014-07-25 07:39:04,741 [TP-Processor8] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.CashMgmtDropEvents
2014-07-25 07:39:04,748 [TP-Processor1] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.WritableOrganizations
2014-07-25 07:39:04,749 [TP-Processor5] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.Warehouses
2014-07-25 07:39:04,760 [TP-Processor3] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.Payments
2014-07-25 07:39:04,767 [TP-Processor1] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.Currency
2014-07-25 07:39:04,777 [TP-Processor8] WARN org.openbravo.mobile.core.process.SecuredJSONProcess - User ADUser(0) (name: System) with role ADRole(0) (name: System Administrator) has no access to class org.openbravo.retail.posterminal.term.PriceListVersion


This exception is thrown because the WebPOS is trying to load the Posterminal environment before the login has successfully finished

partial console trace

// good flow
event fired: initializedCommonComponents
event fired: viewRendered

// exception flow
event fired: initializedCommonComponents
loading... cashMgmtDepositEvents
loading... cashMgmtDropEvents
event fired: terminalInfoLoaded
(4) serviceGET org.openbravo.retail.posterminal.term.Terminal
(6) serviceGET org.openbravo.retail.posterminal.term.Payments
(7) serviceGET org.openbravo.retail.posterminal.term.CashMgmtDepositEvents
(8) serviceGET org.openbravo.retail.posterminal.term.CashMgmtDropEvents
(9) serviceGET org.openbravo.retail.posterminal.term.BusinessPartner
(10) serviceGET org.openbravo.retail.posterminal.term.Location
(11) serviceGET org.openbravo.retail.posterminal.term.PriceList
(12) serviceGET org.openbravo.retail.posterminal.term.Warehouses
(13) serviceGET org.openbravo.retail.posterminal.term.PriceListVersion
(14) serviceGET org.openbravo.retail.posterminal.term.Currency
XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.mobile.core.service.jsonrest/ [^]…il.posterminal.term.CashMgmtDepositEvents/%7B%22appName%22:%22WebPOS%22%7D". xhr.js:44
["cashMgmtDepositEvents"] "is/are loaded"
XHR finished loading: GET "http://localhost:8080/openbravo/org.openbravo.mobile.core.service.jsonrest/ [^]…etail.posterminal.term.CashMgmtDropEvents/%7B%22appName%22:%22WebPOS%22%7D". xhr.js:44
["cashMgmtDropEvents"] "is/are loaded"
Load the Login page
Reload (keep reloading until the error is shown)
No tags attached.
blocks defect 0027337 acknowledged Retail Stabilization: No tomcat errors while running the WebPOS 
blocks defect 0027380 closed Orekaria Stabilization: After log in, sometimes, the server is returning a 401: non authorized code 
blocks defect 0027248 closed marvintm Sometimes the session expires before it should, use a different servlet/url for retrieving content before login 
blocks defect 0026955 closed Orekaria Sometimes the ad_user_id is sent null to the backend provoking an error 
png noaccess.png (50,760) 2014-08-14 13:22
https://issues.openbravo.com/file_download.php?file_id=7135&type=bug
png
Issue History
2014-07-25 12:36OrekariaNew Issue
2014-07-25 12:36OrekariaAssigned To => marvintm
2014-07-25 12:36OrekariaTriggers an Emergency Pack => No
2014-07-25 12:46OrekariaSummaryWarn raised: User ADUser(0) (name: System) with role ADRole(0) has no access to class <class_name> => Backend WARN: User ADUser(0) (name: System) with role ADRole(0) has no access to class <class_name>
2014-08-14 11:44OrekariaNote Added: 0069368
2014-08-14 13:14OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6272#r6272
2014-08-14 13:17OrekariaRelationship addeddepends on 0027337
2014-08-14 13:17OrekariaRelationship deleteddepends on 0027337
2014-08-14 13:18OrekariaRelationship addedblocks 0027337
2014-08-14 13:22OrekariaFile Added: noaccess.png
2014-08-14 15:25OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6275#r6275
2014-08-14 15:26OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6277#r6277
2014-08-14 15:26OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6278#r6278
2014-08-19 12:46OrekariaSummaryBackend WARN: User ADUser(0) (name: System) with role ADRole(0) has no access to class <class_name> => Stabilization: Current user/role has no access to class org.openbravo.retail.posterminal.term.Terminal
2014-08-19 12:46OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6348#r6348
2014-08-22 11:22hgbotCheckin
2014-08-22 11:22hgbotNote Added: 0069604
2014-08-22 11:22OrekariaStatusnew => scheduled
2014-08-22 11:22OrekariaAssigned Tomarvintm => Orekaria
2014-08-22 11:22Orekariafix_in_branch => pi
2014-08-22 11:22OrekariaIssue Monitored: mtaal
2014-08-22 11:25hgbotCheckin
2014-08-22 11:25hgbotNote Added: 0069605
2014-08-22 13:04OrekariaRelationship addedblocks 0027380
2014-08-22 19:54hgbotCheckin
2014-08-22 19:54hgbotNote Added: 0069618
2014-08-22 23:08OrekariaRelationship addedblocks 0027248
2014-08-23 01:14OrekariaRelationship addedblocks 0026955
2014-08-23 16:30hudsonbotCheckin
2014-08-23 16:30hudsonbotNote Added: 0069644
2014-08-23 16:30hudsonbotCheckin
2014-08-23 16:30hudsonbotNote Added: 0069645
2014-08-24 06:15hgbotCheckin
2014-08-24 06:15hgbotNote Added: 0069664
2014-08-24 06:16OrekariaNote Deleted: 0069618
2014-08-24 15:47hudsonbotCheckin
2014-08-24 15:47hudsonbotNote Added: 0069670
2014-08-24 18:14hgbotCheckin
2014-08-24 18:14hgbotNote Added: 0069678
2014-08-25 02:43hudsonbotCheckin
2014-08-25 02:43hudsonbotNote Added: 0069693
2014-09-02 22:17OrekariaStatusscheduled => resolved
2014-09-02 22:17OrekariaFixed in Version => RR14Q4
2014-09-02 22:17OrekariaResolutionopen => fixed
2014-09-25 21:30mtaalReview Assigned To => mtaal
2014-09-25 21:30mtaalNote Added: 0070410
2014-09-25 21:30mtaalStatusresolved => closed

Notes
(0069368)
Orekaria   
2014-08-14 11:44   
the warning is fired by SecuredJSONProcess.java

log.warn("User " + OBContext.getOBContext().getUser() + " with role " + OBContext.getOBContext().getRole() + " has no access to " + this.getClass());
(0069604)
hgbot   
2014-08-22 11:22   
Repository: erp/devel/pi
Changeset: cf11c0384bf8515b1f8c5785265234cbc8c06dd8
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Fri Aug 22 11:21:55 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cf11c0384bf8515b1f8c5785265234cbc8c06dd8 [^]

Related to issue 27200: If the authentication is not required, return null

---
M src/org/openbravo/authentication/AuthenticationManager.java
---
(0069605)
hgbot   
2014-08-22 11:25   
Repository: erp/devel/pi
Changeset: 40db62dc5cd89f9cbef12c45f8154170b2c82b4f
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Fri Aug 22 11:24:44 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/40db62dc5cd89f9cbef12c45f8154170b2c82b4f [^]

Related to issue 27200: Better comment

---
M src/org/openbravo/authentication/AuthenticationManager.java
---
(0069644)
hudsonbot   
2014-08-23 16:30   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/81b875753850 [^]
Maturity status: Test
(0069645)
hudsonbot   
2014-08-23 16:30   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/81b875753850 [^]
Maturity status: Test
(0069664)
hgbot   
2014-08-24 06:15   
Repository: erp/devel/pi
Changeset: 8355dc1cb215a40c47aaad72eb1909ffc56ab34e
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Sun Aug 24 06:14:12 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8355dc1cb215a40c47aaad72eb1909ffc56ab34e [^]

Related to issue 27200: If the authentication is not required, return null
- the check has changed its location

---
M src/org/openbravo/authentication/AuthenticationManager.java
---
(0069670)
hudsonbot   
2014-08-24 15:47   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0e088398c072 [^]
Maturity status: Test
(0069678)
hgbot   
2014-08-24 18:14   
Repository: erp/devel/pi
Changeset: eb39cf6f117ad4221008cf2fca5eba4111829884
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Aug 24 18:13:24 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/eb39cf6f117ad4221008cf2fca5eba4111829884 [^]

Related to issue 27200: If the authentication is not required, return null
Onl return null if no userId was determined

---
M src/org/openbravo/authentication/AuthenticationManager.java
---
(0069693)
hudsonbot   
2014-08-25 02:43   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f8ce5a3b8dcb [^]
Maturity status: Test
(0070410)
mtaal   
2014-09-25 21:30   
Reviewed