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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032541
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2016-03-23 15:392016-03-23 21:50
ReportermalsasuaView Statuspublic 
Assigned Tocaristu 
PriorityimmediateResolutionfixedFixed in Version3.0PR16Q2
StatusclosedFix in branchFixed in SCM revision64cf7b4c5e72
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression levelProduction - QA Approved
Regression date2015-10-27
Regression introduced in release3.0PR16Q1
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/cbf2d65774b8afda5265c76b78642271a0a7246a [^]
Triggers an Emergency PackNo
Summary

0032541: invoice report can not be printed by manual roles

Descriptionit is not possible to print a invoice with a manual role.

Error is returned:
org.openbravo.base.exception.OBSecurityException: Entity ADWindow is not readable by the user 100
Steps To Reproducein F&B, use role "Finance"
. go to sales invoice window
. print one record
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 00325423.0PR16Q1.1 closedcaristu invoice report can not be printed by manual roles 
caused by feature request 0030783 closedNaroaIriarte reduce the number of clicks to print documents 

-  Notes
(0085293)
caristu (developer)
2016-03-23 15:49

It is necessary to retrieve the window information using admin mode. The stack trace of the error:

org.openbravo.base.exception.OBSecurityException: Entity ADWindow is not readable by the user 100
    at org.openbravo.dal.security.EntityAccessChecker.checkReadable(EntityAccessChecker.java:343)
    at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:605)
    at org.openbravo.dal.service.OBDal.checkReadAccess(OBDal.java:592)
    at org.openbravo.dal.service.OBDal.get(OBDal.java:297)
    at org.openbravo.erpCommon.businessUtility.PrinterReports.doPost(PrinterReports.java:65)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:228)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:428)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:450)
    at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:399)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
    at java.lang.Thread.run(Thread.java:745)
(0085294)
hgbot (developer)
2016-03-23 16:11

Repository: erp/devel/pi
Changeset: 64cf7b4c5e7244ca023b091057a58d5eaf0786eb
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Mar 23 16:10:06 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/64cf7b4c5e7244ca023b091057a58d5eaf0786eb [^]

fixes issue 32541: invoice report can not be printed by manual roles

Now the Window object is retrieved using admin mode.

---
M src/org/openbravo/erpCommon/businessUtility/PrinterReports.java
---
(0085296)
alostale (manager)
2016-03-23 16:29

Code reviewed + verified
(0085298)
caristu (developer)
2016-03-23 16:35
edited on: 2016-03-23 16:35

Created test in Testlink: https://testlink.openbravo.com/testlink/linkto.php?tprojectPrefix=Communit&item=testcase&id=Communit-10007 [^]

(0085303)
hudsonbot (developer)
2016-03-23 21:50

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/618cfeb90f07 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-03-23 15:39 malsasua New Issue
2016-03-23 15:39 malsasua Assigned To => platform
2016-03-23 15:39 malsasua Modules => Core
2016-03-23 15:39 malsasua Regression level => Production - QA Approved
2016-03-23 15:39 malsasua Triggers an Emergency Pack => No
2016-03-23 15:40 malsasua Description Updated View Revisions
2016-03-23 15:48 caristu Assigned To platform => caristu
2016-03-23 15:48 caristu Status new => acknowledged
2016-03-23 15:49 caristu Note Added: 0085293
2016-03-23 15:49 caristu Status acknowledged => scheduled
2016-03-23 15:57 caristu Regression date => 2015-10-27
2016-03-23 15:57 caristu Regression introduced in release => 3.0PR16Q1
2016-03-23 15:57 caristu Regression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/cbf2d65774b8afda5265c76b78642271a0a7246a [^]
2016-03-23 15:57 caristu Relationship added caused by 0030783
2016-03-23 16:11 hgbot Checkin
2016-03-23 16:11 hgbot Note Added: 0085294
2016-03-23 16:11 hgbot Status scheduled => resolved
2016-03-23 16:11 hgbot Resolution open => fixed
2016-03-23 16:11 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/64cf7b4c5e7244ca023b091057a58d5eaf0786eb [^]
2016-03-23 16:14 caristu Review Assigned To => alostale
2016-03-23 16:29 alostale Note Added: 0085296
2016-03-23 16:29 alostale Status resolved => closed
2016-03-23 16:29 alostale Fixed in Version => 3.0PR16Q2
2016-03-23 16:35 caristu Note Added: 0085298
2016-03-23 16:35 caristu Note Edited: 0085298 View Revisions
2016-03-23 21:50 hudsonbot Checkin
2016-03-23 21:50 hudsonbot Note Added: 0085303


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker