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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0029845
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformminorhave not tried2015-05-12 10:372015-07-06 13:04
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PriorityhighResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0029845: OBQuery does not filter by readable organizations if the queried entity is Organization

DescriptionIf 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.
Steps To ReproduceConsider 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

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-05-12 10:37 AugustoMauch New Issue
2015-05-12 10:37 AugustoMauch Assigned To => AugustoMauch
2015-05-12 10:37 AugustoMauch Modules => Core
2015-05-12 10:37 AugustoMauch Triggers an Emergency Pack => No
2015-07-06 13:04 alostale Status new => acknowledged
2015-07-06 13:04 alostale Type defect => design defect


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker