Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0027253 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2014-07-31 19:37 | 2014-08-04 08:58 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | shankarb | |||||||
Priority | high | Resolution | unable to reproduce | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | ||||
Projection | none | ETA | none | Target Version | 3.0PR14Q4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | shankarb | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 29818 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0027253: @additional_filters@ is not working as expected in HQL query selectors | |||||||
Description | The @additional_filters@ appends automatically the implicit filter by Client and accessible Organizations[1]. This is not applied properly under some circumstances. [1] http://wiki.openbravo.com/wiki/Selector_Example [^] | |||||||
Steps To Reproduce | 1) Log-in as F&B International Group Admin, create a new sales price list for F&B International Group. Set it as default. 2) Add one product from F&B España and another one from F&B US to the price list 3) Log-in as F&B España Admin, Go to the [Sales Invoice] window and create a new record for F&B España 4) Go to the [Lines] tab and click on the product selector. Notice that it is possible to select the product from F&B US. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0069057) shankarb (viewer) 2014-08-04 08:58 |
The @additional_filters@ are applied correctly. They are applied on the base table of the hql query. Here is the selector query and the second one is the query at runtime. if you check, the additional org filters are applied properly, but it is being applied on the base table PricingProductPrice pp and not on product e. Selector Query: select e.searchKey as searchKey, e.id as id, plv as priceListVersion, plv.name as priceListVersionName, c.id as currency, pp.priceLimit as priceLimit, e.name as productName, e.uOM as uOM, pp.standardPrice as standardPrice, pp.listPrice as netListPrice, pl.salesPriceList as salesPriceList, e.characteristicDescription as chDescription, gp.name as genericProduct from PricingProductPrice pp join pp.product e join pp.priceListVersion plv join plv.priceList pl left join pl.currency c left join e.genericProduct gp where e.isGeneric = 'N' and plv.active = 'Y' and @additional_filters@ Runtime Query: QueryImpl(select e.searchKey as searchKey, e.id as id, plv as priceListVersion, plv.name as priceListVersionName, c.id as currency, pp.priceLimit as priceLimit, e.name as productName, e.uOM as uOM, pp.standardPrice as standardPrice, pp.listPrice as netListPrice, pl.salesPriceList as salesPriceList, e.characteristicDescription as chDescription, gp.name as genericProduct from PricingProductPrice pp join pp.product e join pp.priceListVersion plv join plv.priceList pl left join pl.currency c left join e.genericProduct gp where e.isGeneric = 'N' and plv.active = 'Y' and pp.client.id in ('0', '23C59575B9CF467C9620760EB255B389') AND pp.organization in ('E443A31992CB4635AFCAEABE7183CE85','0','19404EAD144C49A0AF37D54377CF452D','B843C30461EA4501935CB1D125C9C25A') AND ( pl.salesPriceList = true AND c.id = '102') AND lower(plv.name) LIKE '%04-08-2014%' ORDER BY 7) Updated the wiki, http://wiki.openbravo.com/wiki/Selector_Example [^] to reflect where the additional filters will be applied. |
![]() |
|||
Date Modified | Username | Field | Change |
2014-07-31 19:37 | caristu | New Issue | |
2014-07-31 19:37 | caristu | Assigned To | => AugustoMauch |
2014-07-31 19:37 | caristu | OBNetwork customer | => Yes |
2014-07-31 19:37 | caristu | Modules | => Core |
2014-07-31 19:37 | caristu | Support ticket | => 29818 |
2014-07-31 19:37 | caristu | Resolution time | => 1407967200 |
2014-07-31 19:37 | caristu | Triggers an Emergency Pack | => No |
2014-07-31 19:37 | caristu | Issue Monitored: networkb | |
2014-07-31 19:37 | caristu | Relationship added | related to 0027252 |
2014-07-31 19:39 | caristu | Steps to Reproduce Updated | View Revisions |
2014-07-31 19:42 | caristu | Resolution time | 1407967200 => 1408658400 |
2014-07-31 19:43 | caristu | Target Version | => 3.0PR14Q4 |
2014-08-04 06:16 | shankarb | Assigned To | AugustoMauch => shankarb |
2014-08-04 06:16 | shankarb | Status | new => scheduled |
2014-08-04 06:16 | shankarb | fix_in_branch | => pi |
2014-08-04 08:58 | shankarb | Review Assigned To | => shankarb |
2014-08-04 08:58 | shankarb | Note Added: 0069057 | |
2014-08-04 08:58 | shankarb | Status | scheduled => closed |
2014-08-04 08:58 | shankarb | Resolution | open => unable to reproduce |
Copyright © 2000 - 2009 MantisBT Group |