Project:
View Revisions: Issue #29846 | [ Back to Issue ] | ||
Summary | 0029846: OBQuery does not filter by readable organizations/clients if the queried entity is Organization/Client respetively | ||
Revision | 2015-05-12 12:03 by AugustoMauch | ||
Steps To Reproduce | See attached test | ||
Revision | 2015-05-12 12:03 by AugustoMauch | ||
Description | If an OBQuery is used to retrieve the list of organizations/clients, it will return organizations/clients that are not readable by the role even if the filterOnReadableOrganizations/filterOnReadableClients attribute of the query is set to true respetively | ||
Revision | 2015-05-12 10:38 by AugustoMauch | ||
Steps To Reproduce | Consider the following code: OBQuery<Organization> obQuery = OBDal.getInstance().createQuery(Organization.class, ""); obQuery.setFilterOnReadableOrganization(true); List<Organization> organizations = obQuery.list(); The Query created to obtain the results is using this HQL FROM and WHERE clauses: from Organization where client.id in ('23C59575B9CF467C9620760EB255B389', '0') and active='Y' Note that the readable organization check is missing |
||
Revision | 2015-05-12 10:38 by AugustoMauch | ||
Description | If an OBQuery is used to retrieve the list of organizations, it will return organizations that are not readable by the role even if the filterOnReadableOrganizations attribute of the query is set to true. |
Copyright © 2000 - 2009 MantisBT Group |