Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0035197 | Openbravo ERP | A. Platform | public | 2017-02-07 14:52 | 2017-02-10 07:30 | |||||||
Reporter | ngarcia | |||||||||||
Assigned To | caristu | |||||||||||
Priority | immediate | Severity | minor | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR17Q1 | Fixed in Version | 3.0PR17Q1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | alostale | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | Production - QA Approved | |||||||||||
Regression date | 2016-04-18 | |||||||||||
Regression introduced in release | 3.0PR16Q3 | |||||||||||
Regression introduced by commit | http://code.openbravo.com/erp/devel/pi/rev/82f27ac1b1497b3a82646b140ab1b6e048f2b766 [^] | |||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0035197: Cannot attach a document to an invoice if the role does not have access to ADTab entity and there is a module In Development | |||||||||||
Description | Cannot attach a document to an invoice if the role does not have access to ADTab entity and there is a module In Development In upload function of AttachImplementationManager class the getTab function of the ApplicationDictionaryCachedStructures class is executed: Tab tab = adcs.getTab(strTab); There, if there exists a module In Development it is trying to return the Tab class: if (!useCache()) { // not using cache, initialize just current tab and go return OBDal.getInstance().get(Tab.class, tabId); } | |||||||||||
Steps To Reproduce | As system admin role: Set a module In Development Restart Tomcat As group admin role: Create a new manual role Add access to F&B EspaƱa Region Norte organization Add editable access to Sales Invoice window Assign it to Openbravo user Log out and log in Change to the previously created role Go to Sales Invoice window, select a record and print it Select the option to attach it (Yes) Check the following error message is shown: "Entity ADTab is not readable by the user ..." The log shows: org.openbravo.base.exception.OBSecurityException: Entity ADTab is not readable by the user 100 at org.openbravo.dal.security.EntityAccessChecker.checkReadable(EntityAccessChecker.java:464) at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:654) at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:641) at org.openbravo.dal.service.OBDal.get(OBDal.java:337) at org.openbravo.client.application.window.ApplicationDictionaryCachedStructures.getTab(ApplicationDictionaryCachedStructures.java:124) at org.openbravo.client.application.window.ApplicationDictionaryCachedStructures$Proxy$_$$_WeldClientProxy.getTab(ApplicationDictionaryCachedStructures$Proxy$_$$_WeldClientProxy.java) at org.openbravo.client.application.attachment.AttachImplementationManager.upload(AttachImplementationManager.java:119) at org.openbravo.erpCommon.utility.reporting.ReportManager.createAttachmentForReport(ReportManager.java:198) at org.openbravo.erpCommon.utility.reporting.ReportManager.createAttachmentForReport(ReportManager.java:165) at org.openbravo.erpCommon.utility.reporting.printing.PrintController.buildReport(PrintController.java:625) at org.openbravo.erpCommon.utility.reporting.printing.PrintController.post(PrintController.java:254) at org.openbravo.erpCommon.utility.reporting.printing.PrintInvoices.doPost(PrintInvoices.java:54) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-02-08 13:17 | caristu | Type | defect => backport | |||||||||
2017-02-08 13:17 | caristu | Target Version | => 3.0PR17Q1 | |||||||||
2017-02-08 14:08 | hgbot | Checkin | ||||||||||
2017-02-08 14:08 | hgbot | Note Added: 0094147 | ||||||||||
2017-02-08 14:08 | hgbot | Status | scheduled => resolved | |||||||||
2017-02-08 14:08 | hgbot | Resolution | open => fixed | |||||||||
2017-02-08 14:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR17Q1/rev/10effee8d6e4385f98ca98e86c205fec720bca2d [^] | |||||||||
2017-02-10 07:30 | alostale | Review Assigned To | => alostale | |||||||||
2017-02-10 07:30 | alostale | Note Added: 0094193 | ||||||||||
2017-02-10 07:30 | alostale | Status | resolved => closed | |||||||||
2017-02-10 07:30 | alostale | Fixed in Version | => 3.0PR17Q1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|