Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0014697 | Openbravo ERP | Z. Others | public | 2010-09-24 13:22 | 2010-12-16 22:16 | |||||||
| Reporter | rafaroda | |||||||||||
| Assigned To | mtaal | |||||||||||
| Priority | high | Severity | major | Reproducibility | always | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 20 | OS Version | Community Appliance | ||||||||
| Product Version | 2.50 | |||||||||||
| Target Version | Fixed in Version | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | JSON REST Webservice | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0014697: Entity EVEBUCO_FUNCCLASS is not directly readable | |||||||||||
| Description | When accessing a selector defined as you can see in SelectorDefinition.png and try to select a value from it with an user which can not read EVEBUCO_FUNCCLASS class you get the following error. 12:50:45 [http-8585-4] ERROR org.openbravo.base.exception.OBSecurityException - Entity EVEBUCO_FUNCCLASS is not directly readable, only id and identifier properties are readable, property EVEBUCO_FUNCCLASS.description is neither of these. org.openbravo.base.exception.OBSecurityException: Entity EVEBUCO_FUNCCLASS is not directly readable, only id and identifier properties are readable, property EVEBUCO_FUNCCLASS.description 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.service.json.DataToJsonConverter.toJsonObject(DataToJsonConverter.java:134) at org.openbravo.service.json.DataToJsonConverter.toJsonObjects(DataToJsonConverter.java:100) at org.openbravo.service.json.DefaultJsonDataService.fetch(DefaultJsonDataService.java:125) at org.openbravo.service.datasource.DefaultDataSourceService.fetch(DefaultDataSourceService.java:63) at org.openbravo.service.datasource.DataSourceServlet.doFetch(DataSourceServlet.java:144) at org.openbravo.service.datasource.DataSourceServlet.doPost(DataSourceServlet.java:154) 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:434) at org.openbravo.client.kernel.BaseKernelServlet.callServiceInSuper(BaseKernelServlet.java:91) at org.openbravo.client.kernel.BaseKernelServlet$1.process(BaseKernelServlet.java:65) at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53) at org.openbravo.client.kernel.BaseKernelServlet.service(BaseKernelServlet.java:67) at org.openbravo.service.datasource.DataSourceServlet.service(DataSourceServlet.java:75) 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.Http11AprProcessor.process(Http11AprProcessor.java:859) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555) at java.lang.Thread.run(Thread.java:636) | |||||||||||
| Steps To Reproduce | I'm using a selector with an user which does not have access to the window (which is built in top of EVEBUCO_FUNCCLASS table) related to the selector and get the error: Entity EVEBUCO_FUNCCLASS is not directly readable, only id and identifier properties are readable, property EVEBUCO_FUNCCLASS.description is neither of these (see SelectorError.png). In table EVEBUCO_FUNCCLASS table I only defined search key and name as identifiers. I defined the selector as you can see in SelectorDefinition.png. | |||||||||||
| Proposed Solution | ||||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | https://issues.openbravo.com/file_download.php?file_id=3120&type=bug https://issues.openbravo.com/file_download.php?file_id=3121&type=bug | |||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2010-09-24 13:22 | rafaroda | New Issue | ||||||||||
| 2010-09-24 13:22 | rafaroda | Assigned To | => mtaal | |||||||||
| 2010-09-24 13:22 | rafaroda | File Added: SelectorDefinition.png | ||||||||||
| 2010-09-24 13:22 | rafaroda | OBNetwork customer | => No | |||||||||
| 2010-09-24 13:22 | rafaroda | Issue Monitored: rafaroda | ||||||||||
| 2010-09-24 13:22 | rafaroda | File Added: SelectorError.png | ||||||||||
| 2010-09-24 13:39 | hgbot | Checkin | ||||||||||
| 2010-09-24 13:39 | hgbot | Note Added: 0031348 | ||||||||||
| 2010-09-24 13:39 | hgbot | Status | new => resolved | |||||||||
| 2010-09-24 13:39 | hgbot | Resolution | open => fixed | |||||||||
| 2010-09-24 13:39 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/mods/org.openbravo.service.json/rev/d5bd1147245d29640df13ff94b621fa1d9ae0c1b [^] | |||||||||
| 2010-12-09 13:34 | hgbot | Checkin | ||||||||||
| 2010-12-09 13:34 | hgbot | Note Added: 0033083 | ||||||||||
| 2010-12-09 15:52 | shuehner | Relationship added | related to 0015387 | |||||||||
| 2010-12-09 17:51 | shuehner | Note Added: 0033099 | ||||||||||
| 2010-12-09 17:51 | shuehner | Status | resolved => closed | |||||||||
| 2010-12-16 22:16 | anonymous | sf_bug_id | 0 => 3138783 | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||