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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0042548
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2019-12-13 09:022020-03-31 16:41
ReporterkchoperenaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR20Q1
StatusclosedFix in branchFixed in SCM revision07ca40164325
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tojorge-garcia
Regression levelProduction - Confirmed Stable
Regression date2019-03-18
Regression introduced in releaseRR19Q2
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/731fb834a713 [^]
Triggers an Emergency PackNo
Summary

0042548: It is needed a setAdminMode(true) in isCrossStoreEnabled method of POSUtils.java

DescriptionIt is needed an OBContext.setAdminMode(true) in isCrossStoreEnabled of POSUtils.java because the Category.java is calling through the getQuery method and blocks the login of the WebPOS with some user configuration because the Organization entity is not directly readable.
It happens with users not configured as admin that do not have access to Organization entity and also have a role configured as manual.
Steps To Reproduce1.- Config a user in the back-end without admin permissions
2.- Assign to the user a role that is manual
3.- Remove from the role the Window Access of the 'Organization' entity.
4.- Try to do a login with the user in the Web POS


EXPECTED RESULT:
The next error should appear in the console log:

2019-12-13 08:55:13,104 [http-nio-8080-exec-1] ERROR org.openbravo.mobile.core.process.ProcessHQLQuery - org.openbravo.retail.posterminal.master.Category: Error when generating query: null (Entity Organization is not directly readable, only id and identifier properties are readable, property Organization.oBRETCOCrossStoreOrganization is neither of these.)
org.openbravo.base.exception.OBSecurityException: Entity Organization is not directly readable, only id and identifier properties are readable, property Organization.oBRETCOCrossStoreOrganization is neither of these.
    at org.openbravo.base.structure.BaseOBObject.checkDerivedReadable(BaseOBObject.java:291) ~[classes/:?]
    at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:252) ~[classes/:?]
    at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:229) ~[classes/:?]
    at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:210) ~[classes/:?]
    at org.openbravo.model.common.enterprise.Organization.getOBRETCOCrossStoreOrganization(Organization.java:2201) ~[classes/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222]
    at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor.intercept(ByteBuddyInterceptor.java:56) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.proxy.ProxyConfiguration$InterceptorDispatcher.intercept(ProxyConfiguration.java:95) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.openbravo.model.common.enterprise.Organization$HibernateProxy$d75QZZ5l.getOBRETCOCrossStoreOrganization(Unknown Source) ~[classes/:?]
    at org.openbravo.retail.posterminal.POSUtils.isCrossStoreEnabled(POSUtils.java:963) ~[classes/:?]
    at org.openbravo.retail.posterminal.master.Category.getQuery(Category.java:80) ~[classes/:?]
TagsNo tags attached.
Attached Filesdiff file icon addSetAdminModeInPOSUtilsIsCrossStoreEnabled.diff [^] (837 bytes) 2019-12-13 09:02 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0043624RR19Q4.4 closedranjith_qualiantech_com It is needed a setAdminMode(true) in isCrossStoreEnabled method of POSUtils.java 

-  Notes
(0116324)
hgbot (developer)
2019-12-16 07:44

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 07ca401643257350698cfc0bb54e655a813ce796
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Dec 16 12:14:03 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/07ca401643257350698cfc0bb54e655a813ce796 [^]

Fixed issue 42548 : Added AdminMode to isCrossStoreEnabled method in POSUtils

---
M src/org/openbravo/retail/posterminal/POSUtils.java
---
(0116344)
jorge-garcia (reporter)
2019-12-16 13:26

Code reviewed and tested

- Issue History
Date Modified Username Field Change
2019-12-13 09:02 kchoperena New Issue
2019-12-13 09:02 kchoperena Assigned To => Retail
2019-12-13 09:02 kchoperena File Added: addSetAdminModeInPOSUtilsIsCrossStoreEnabled.diff
2019-12-13 09:02 kchoperena Resolution time => 1577401200
2019-12-13 09:02 kchoperena Triggers an Emergency Pack => No
2019-12-13 11:12 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2019-12-13 11:12 ranjith_qualiantech_com Status new => scheduled
2019-12-16 07:44 hgbot Checkin
2019-12-16 07:44 hgbot Note Added: 0116324
2019-12-16 07:44 hgbot Status scheduled => resolved
2019-12-16 07:44 hgbot Resolution open => fixed
2019-12-16 07:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/07ca401643257350698cfc0bb54e655a813ce796 [^]
2019-12-16 13:26 jorge-garcia Review Assigned To => jorge-garcia
2019-12-16 13:26 jorge-garcia Note Added: 0116344
2019-12-16 13:26 jorge-garcia Status resolved => closed
2019-12-16 13:26 jorge-garcia Fixed in Version => RR20Q1
2020-03-31 16:32 marvintm Status closed => new
2020-03-31 16:32 marvintm Resolution fixed => open
2020-03-31 16:32 marvintm Fixed in Version RR20Q1 =>
2020-03-31 16:32 marvintm Status new => scheduled
2020-03-31 16:32 marvintm Status scheduled => resolved
2020-03-31 16:32 marvintm Fixed in Version => RR20Q1
2020-03-31 16:32 marvintm Resolution open => fixed
2020-03-31 16:32 marvintm Status resolved => closed
2020-03-31 16:40 marvintm Regression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/731fb834a713 [^]
2020-03-31 16:41 marvintm Regression level => Production - Confirmed Stable
2020-03-31 16:41 marvintm Regression date => 2019-03-18
2020-03-31 16:41 marvintm Regression introduced in release => RR19Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker