Openbravo Issue Tracking System - Retail Modules | |||||||||||||
View Issue Details | |||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0038874 | Retail Modules | Web POS | public | 2018-07-03 08:56 | 2018-07-04 17:38 | ||||||||
Reporter | caristu | ||||||||||||
Assigned To | caristu | ||||||||||||
Priority | urgent | Severity | minor | Reproducibility | have not tried | ||||||||
Status | closed | Resolution | fixed | ||||||||||
Platform | OS | 5 | OS Version | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Merge Request Status | |||||||||||||
Review Assigned To | migueldejuana | ||||||||||||
OBNetwork customer | |||||||||||||
Support ticket | |||||||||||||
Regression level | |||||||||||||
Regression date | |||||||||||||
Regression introduced in release | |||||||||||||
Regression introduced by commit | |||||||||||||
Triggers an Emergency Pack | No | ||||||||||||
Summary | 0038874: Is not possible to log-in in WebPOS using Hibernate 5.3 | ||||||||||||
Description | Is not possible to log-in in WebPOS using Hibernate 5.3 | ||||||||||||
Steps To Reproduce | 1) Build Openbravo (with Retail pack) using Hibernate 5.3 (https://code.openbravo.com/erp/devel/pi-hb53 [^]) 2) Try to log-in in a terminal. ERROR. The following error is raised in the log: 98132 [http-bio-8080-exec-3] ERROR org.openbravo.retail.posterminal.term.Terminal - Terminal exception: Named parameter not bound : valueEqArray0Stacktrace: [Ljava.lang.StackTraceElement;@76ab30ad 98141 [http-bio-8080-exec-3] ERROR org.openbravo.mobile.core.process.SecuredJSONProcess - Named parameter not bound : valueEqArray0 org.openbravo.base.exception.OBException: Named parameter not bound : valueEqArray0 at org.openbravo.retail.posterminal.term.Terminal.exec(Terminal.java:287) ... | ||||||||||||
Proposed Solution | The problem is caused because the SimpleQueryBuilder.fillQueryWithParameters is not replacing the parameters properly. This is because in Hibernate 5.3 query.toString() does not contain the sql string anymore. The query.getQueryString() can be used instead. See attached patch with the proposed solution. | ||||||||||||
Additional Information | |||||||||||||
Tags | No tags attached. | ||||||||||||
Relationships |
| ||||||||||||
Attached Files | simpleQueryBuilder.diff (679) 2018-07-03 08:56 https://issues.openbravo.com/file_download.php?file_id=11925&type=bug | ||||||||||||
Issue History | |||||||||||||
Date Modified | Username | Field | Change | ||||||||||
2018-07-03 08:56 | caristu | New Issue | |||||||||||
2018-07-03 08:56 | caristu | Assigned To | => platform | ||||||||||
2018-07-03 08:56 | caristu | File Added: simpleQueryBuilder.diff | |||||||||||
2018-07-03 08:56 | caristu | Modules | => Core | ||||||||||
2018-07-03 08:56 | caristu | Triggers an Emergency Pack | => No | ||||||||||
2018-07-03 08:56 | caristu | Project | Openbravo ERP => Retail Modules | ||||||||||
2018-07-03 08:57 | caristu | Assigned To | platform => Retail | ||||||||||
2018-07-03 08:57 | caristu | Category | A. Platform => Web POS | ||||||||||
2018-07-03 08:57 | caristu | Relationship added | blocks 0037064 | ||||||||||
2018-07-03 09:42 | hgbot | Checkin | |||||||||||
2018-07-03 09:42 | hgbot | Note Added: 0105538 | |||||||||||
2018-07-03 09:42 | hgbot | Status | new => resolved | ||||||||||
2018-07-03 09:42 | hgbot | Resolution | open => fixed | ||||||||||
2018-07-03 09:42 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7a04ce4e731138b2dd065fb001efe8d38b5e8231 [^] | ||||||||||
2018-07-03 09:43 | caristu | Review Assigned To | => migueldejuana | ||||||||||
2018-07-03 10:06 | caristu | Assigned To | Retail => caristu | ||||||||||
2018-07-04 17:38 | migueldejuana | Note Added: 0105595 | |||||||||||
2018-07-04 17:38 | migueldejuana | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|