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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028276
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2014-11-25 12:382014-12-30 23:26
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision7d2529edd900
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToSandrahuguet
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028276: testADataAccessLevel should not test HQL tables, as they don't have a physical database table

DescriptionThe AccessLevelTest.testADataAccessLevel tests if the current client/org of all tables in the database is valid for the access level defined for that entity. It does so my executing a query to the database table associated with the ad_table.

ad_tables based on manual datasources or on hql queries do not have database tables associated, so this test should not consider them. This was already working properly for ad_tables based on manual datasources, but not for datasources based on HQL tables.
Steps To ReproduceThis issue was discovered when the project that replaces P&E manual datasources with HQL-based tables was pushed to Try.
- Create an ad_table based on a HQL query. It should have a client column and an organization column.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0071976)
hgbot (developer)
2014-11-25 12:40

Repository: erp/devel/pi
Changeset: 7d2529edd9001939d5c4a0ba122d70e7b386ec7c
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Tue Nov 25 12:39:46 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7d2529edd9001939d5c4a0ba122d70e7b386ec7c [^]

Fixes issue 28276: AccessLevelTest does not take into account HQL based tables

The AccessLevelTest.testADataAccessLevel tests if the current client/org of all tables in the database is valid for the access level defined for that entity. It does so my executing a query to the database table associated with the ad_table.

ad_tables based on manual datasources or on hql queries do not have database tables associated, so this test should not consider them. This was already working properly for ad_tables based on manual datasources, but not for datasources based on HQL tables.

---
M src-test/src/org/openbravo/test/security/AccessLevelTest.java
---
(0072172)
Sandrahuguet (developer)
2014-12-01 08:41

Verified
(0073137)
hudsonbot (developer)
2014-12-30 23:26

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

- Issue History
Date Modified Username Field Change
2014-11-25 12:38 AugustoMauch New Issue
2014-11-25 12:38 AugustoMauch Assigned To => AugustoMauch
2014-11-25 12:38 AugustoMauch Modules => Core
2014-11-25 12:38 AugustoMauch Triggers an Emergency Pack => No
2014-11-25 12:38 AugustoMauch Issue Monitored: Sandrahuguet
2014-11-25 12:38 AugustoMauch Review Assigned To => Sandrahuguet
2014-11-25 12:40 hgbot Checkin
2014-11-25 12:40 hgbot Note Added: 0071976
2014-11-25 12:40 hgbot Status new => resolved
2014-11-25 12:40 hgbot Resolution open => fixed
2014-11-25 12:40 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7d2529edd9001939d5c4a0ba122d70e7b386ec7c [^]
2014-12-01 08:41 Sandrahuguet Note Added: 0072172
2014-12-01 08:41 Sandrahuguet Status resolved => closed
2014-12-30 23:26 hudsonbot Checkin
2014-12-30 23:26 hudsonbot Note Added: 0073137


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker