Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038735 | Openbravo ERP | 04. Warehouse management | public | 2018-06-12 09:32 | 2018-07-03 09:04 |
|
Reporter | caristu | |
Assigned To | AtulOpenbravo | |
Priority | urgent | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR18Q3 | |
Merge Request Status | |
Review Assigned To | dmiguelez |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0038735: incorrect query in ReservationUtils |
Description | The HQL query defined in the getReservationStockFromStorageDetail method of the ReservationUtils has incorrect bracket balance.
Hibernate 3.6 allows it whereas it is not allowed in newer versions. |
Steps To Reproduce | 1. Using Hibernate 5.3
2. Execute the ReferencedInventoryBoxFullReservationTest.allTests test
-> ERROR: org.hibernate.hql.internal.ast.QuerySyntaxException: expecting EOF, found ')' near line 1, column 276 [select rs from MaterialMgmtReservationStock rs join rs.reservation r where r.product = :product and coalesce(rs.storageBin, r.storageBin) = :storageBin and coalesce(rs.attributeSetValue, r.attributeSetValue) = :attributeSetValue and r.uOM = :uom and rs.quantity > rs.released)] |
Proposed Solution | See attached file with the proposal |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | feature request | 0037064 | | closed | caristu | upgrade hibernate to 5.3.2 |
|
Attached Files | reservationUtils.diff (722) 2018-06-12 09:33 https://issues.openbravo.com/file_download.php?file_id=11849&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2018-06-12 09:32 | caristu | New Issue | |
2018-06-12 09:32 | caristu | Assigned To | => Triage Finance |
2018-06-12 09:32 | caristu | Modules | => Core |
2018-06-12 09:32 | caristu | Triggers an Emergency Pack | => No |
2018-06-12 09:32 | caristu | Issue generated from | 0038655 |
2018-06-12 09:33 | caristu | Relationship added | blocks 0037064 |
2018-06-12 09:33 | caristu | Proposed Solution updated | |
2018-06-12 09:33 | caristu | Proposed Solution updated | |
2018-06-12 09:33 | caristu | File Added: reservationUtils.diff | |
2018-06-12 09:55 | dmiguelez | Assigned To | Triage Finance => AtulOpenbravo |
2018-06-13 20:56 | AtulOpenbravo | Status | new => scheduled |
2018-06-14 03:11 | AtulOpenbravo | Note Added: 0105135 | |
2018-06-26 13:11 | hgbot | Checkin | |
2018-06-26 13:11 | hgbot | Note Added: 0105448 | |
2018-06-26 13:11 | hgbot | Status | scheduled => resolved |
2018-06-26 13:11 | hgbot | Resolution | open => fixed |
2018-06-26 13:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/2b071325db7c1a52fa433ad07cc89376a8c6a431 [^] |
2018-06-26 13:12 | dmiguelez | Review Assigned To | => dmiguelez |
2018-06-26 13:12 | dmiguelez | Note Added: 0105449 | |
2018-06-26 13:12 | dmiguelez | Status | resolved => closed |
2018-06-26 13:12 | dmiguelez | Fixed in Version | => 3.0PR18Q3 |
2018-06-27 13:04 | hudsonbot | Checkin | |
2018-06-27 13:04 | hudsonbot | Note Added: 0105469 | |
2018-07-03 09:04 | caristu | Issue cloned | 0038877 |
Notes |
|
|
Test Plan
- Use hibernate 5.3 (Platform team development repo:https://code.openbravo.com/erp/devel/pi-hb53 [^])
- Run junit test ReferencedInventoryBoxFullReservationTest.
- Realize that test is executed successfully.
- Use latest pi.
- Run junit test ReferencedInventoryBoxFullReservationTest.
- Realize that test is executed successfully. |
|
|
(0105448)
|
hgbot
|
2018-06-26 13:11
|
|
Repository: erp/devel/pi
Changeset: 2b071325db7c1a52fa433ad07cc89376a8c6a431
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Jun 14 06:34:24 2018 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/2b071325db7c1a52fa433ad07cc89376a8c6a431 [^]
Fixes Issue 38735: incorrect query in ReservationUtils
HQL query in getReservationStockFromStorageDetail method
in ReservationUtils.java had ")" end brace at end with out
"(" start brace in the query. This is not correct but was
allowed in hibernate version 3.6, but hibernate version 5.3
does not allow such error in query. Hence the query is modified
by removing the ")" end brace.
---
M src/org/openbravo/materialmgmt/ReservationUtils.java
---
|
|
|
|
|
|
|
|