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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0015660
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformcriticalhave not tried2011-01-14 12:222011-01-15 00:00
ReporterplujanView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision717a56cbb955
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesAdvanced Payables and Receivables Mngmt
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0015660: I receive an error message when completing an Invoice

DescriptionWhen completing an invoice (with all valid data) I receive an error message:
Error
org.openbravo.base.exception.OBSecurityException: Entity ADProcessInstance is not directly readable, only id and identifier properties are readable, property ADProcessInstance.result is neither of these.
Steps To Reproduce1. Enter as Client Admin
2. Go to Sales invoice
3. Create a header and move to lines
4. Create a line and return to header
5. Complete. When completing, the above error message is received
TagsRegression QA
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0015650 closedadrianromero When executing Smoke Test, the data import shows a DAL error message 

-  Notes
(0033648)
alostale (developer)
2011-01-14 12:39

It is failing in org.openbravo.advpaymentmngt.ad_actionbutton.Process invoice line 126:

if (pinstance.getResult() == 0L || !"CO".equals(strdocaction)) {

it tries to read pinstance from an unprivileged user

Here the complete stack trace:

5610729 [http-8880-3] ERROR org.openbravo.base.exception.OBSecurityException - Entity ADProcessInstance is not directly readable, only id and identifier properties are readable, property ADProcessInstance.result is neither of these.
org.openbravo.base.exception.OBSecurityException: Entity ADProcessInstance is not directly readable, only id and identifier properties are readable, property ADProcessInstance.result is neither of these.
    at org.openbravo.base.structure.BaseOBObject.checkDerivedReadable(BaseOBObject.java:172)
    at org.openbravo.base.structure.BaseOBObject.get(BaseOBObject.java:140)
    at org.openbravo.model.ad.process.ProcessInstance.getResult(ProcessInstance.java:134)
    at org.openbravo.advpaymentmngt.ad_actionbutton.ProcessInvoice.doPost(ProcessInvoice.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:456)
    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.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:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
(0033654)
hgbot (developer)
2011-01-14 16:56

Repository: erp/devel/pi
Changeset: 717a56cbb95559144e4e170ad82738ecc4b00eea
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Fri Jan 14 16:56:06 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/717a56cbb95559144e4e170ad82738ecc4b00eea [^]

Fixes issue 15660: I receive an error message when completing an Invoice

---
M src-test/org/openbravo/test/security/EntityAccessTest.java
M src/org/openbravo/base/structure/BaseOBObject.java
M src/org/openbravo/service/db/CallProcess.java
---
(0033657)
shuehner (administrator)
2011-01-14 17:29

Reviewed & tested on pi/pgsql (rev: 717a56cbb955)

- Issue History
Date Modified Username Field Change
2011-01-14 12:22 plujan New Issue
2011-01-14 12:22 plujan Assigned To => alostale
2011-01-14 12:22 plujan Modules => Core
2011-01-14 12:23 plujan Relationship added related to 0015650
2011-01-14 12:23 plujan Tag Attached: Regression QA
2011-01-14 12:36 alostale Modules Core => Advanced Payables and Receivables Mngmt
2011-01-14 12:39 alostale Note Added: 0033648
2011-01-14 16:56 hgbot Checkin
2011-01-14 16:56 hgbot Note Added: 0033654
2011-01-14 16:56 hgbot Status new => resolved
2011-01-14 16:56 hgbot Resolution open => fixed
2011-01-14 16:56 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/717a56cbb95559144e4e170ad82738ecc4b00eea [^]
2011-01-14 17:29 shuehner Note Added: 0033657
2011-01-14 17:29 shuehner Status resolved => closed
2011-01-15 00:00 anonymous sf_bug_id 0 => 3158560


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker