Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0024505 | Openbravo ERP | 00. Application dictionary | public | 2013-08-07 13:41 | 2013-08-27 15:39 | |||||||
Reporter | gorkaion | |||||||||||
Assigned To | AugustoMauch | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 20 | OS Version | Gentoo | ||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0MP27 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | shankarb | |||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0024505: testADataAccessLevel fails with datasource based tables | |||||||||||
Description | The junit test testADataAccessLevel throws an error when there is an ad_table whose data origin is defined as DataSource. [junit] Testcase: testADataAccessLevel took 1.972 sec [junit] Caused an ERROR [junit] Exception when creating query from ManageVariants where (client = ?) and organization.id in ('0') and client.id in ('0') and active='Y' [junit] org.openbravo.base.exception.OBException: Exception when creating query from ManageVariants where (client = ?) and organization.id in ('0') and client.id in ('0') and active='Y' [junit] at org.openbravo.dal.service.OBQuery.createQuery(OBQuery.java:243) [junit] at org.openbravo.dal.service.OBQuery.list(OBQuery.java:115) [junit] at org.openbravo.test.security.AccessLevelTest.testADataAccessLevel(AccessLevelTest.java:168) [junit] at org.openbravo.test.base.BaseTest.runTest(BaseTest.java:306) [junit] Caused by: org.hibernate.hql.ast.QuerySyntaxException: ManageVariants is not mapped [from ManageVariants where (client = ?) and organization.id in ('0') and client.id in ('0') and active='Y' ] [junit] at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180) [junit] at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:111) [junit] at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:93) [junit] at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:327) [junit] at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3441) [junit] at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3325) [junit] at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:733) [junit] at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:584) [junit] at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:301) [junit] at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:244) [junit] at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:254) [junit] at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:185) [junit] at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136) [junit] at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101) [junit] at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80) [junit] at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:124) [junit] at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156) [junit] at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135) [junit] at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1770) [junit] at org.openbravo.dal.service.OBQuery.createQuery(OBQuery.java:230) | |||||||||||
Steps To Reproduce | Create a table based on a DataSource. run the testADataAccessLevel test. | |||||||||||
Proposed Solution | Attached a possible patch that ignores these entities. It has to be considered if an analogue test needs to be created to support this new type of tables. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=6318&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2013-08-07 13:41 | gorkaion | New Issue | ||||||||||
2013-08-07 13:41 | gorkaion | Assigned To | => AugustoMauch | |||||||||
2013-08-07 13:41 | gorkaion | File Added: AccessLevelTestFix.patch | ||||||||||
2013-08-07 13:41 | gorkaion | Modules | => Core | |||||||||
2013-08-07 13:41 | gorkaion | OBNetwork customer | => No | |||||||||
2013-08-07 13:41 | gorkaion | Triggers an Emergency Pack | => No | |||||||||
2013-08-07 13:46 | hgbot | Checkin | ||||||||||
2013-08-07 13:46 | hgbot | Note Added: 0060529 | ||||||||||
2013-08-08 14:41 | alostale | Relationship added | related to 0024514 | |||||||||
2013-08-16 20:31 | hudsonbot | Checkin | ||||||||||
2013-08-16 20:31 | hudsonbot | Note Added: 0060631 | ||||||||||
2013-08-22 10:38 | AugustoMauch | Issue Monitored: dbaz | ||||||||||
2013-08-22 10:39 | AugustoMauch | Review Assigned To | => dbaz | |||||||||
2013-08-22 10:52 | hgbot | Checkin | ||||||||||
2013-08-22 10:52 | hgbot | Note Added: 0060726 | ||||||||||
2013-08-22 10:55 | hgbot | Checkin | ||||||||||
2013-08-22 10:55 | hgbot | Note Added: 0060727 | ||||||||||
2013-08-22 10:55 | hgbot | Status | new => resolved | |||||||||
2013-08-22 10:55 | hgbot | Resolution | open => fixed | |||||||||
2013-08-22 10:55 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/63599aca768e315d6ba83b7811a12452784f3ed5 [^] | |||||||||
2013-08-22 18:17 | hudsonbot | Checkin | ||||||||||
2013-08-22 18:17 | hudsonbot | Note Added: 0060735 | ||||||||||
2013-08-22 18:17 | hudsonbot | Checkin | ||||||||||
2013-08-22 18:17 | hudsonbot | Note Added: 0060736 | ||||||||||
2013-08-27 08:46 | AugustoMauch | Review Assigned To | dbaz => shankarb | |||||||||
2013-08-27 15:39 | shankarb | Note Added: 0060791 | ||||||||||
2013-08-27 15:39 | shankarb | Status | resolved => closed | |||||||||
2013-08-27 15:39 | shankarb | Fixed in Version | => 3.0MP27 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|