Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||||
View Issue Details | |||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||
0037702 | Openbravo ERP | A. Platform | public | 2018-01-22 20:22 | 2021-10-14 09:34 | ||||||||||||||||
Reporter | shuehner | ||||||||||||||||||||
Assigned To | cberner | ||||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||
Product Version | |||||||||||||||||||||
Target Version | Fixed in Version | PR20Q4 | |||||||||||||||||||
Merge Request Status | |||||||||||||||||||||
Review Assigned To | cberner | ||||||||||||||||||||
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 | 0037702: Hibernate update/insert to tables containing CLOB sometimes fail on Oracle (HHH-4635) | ||||||||||||||||||||
Description | Oracle has a functional restriction meaning on tables mixing varchar & clob column which essentially means that clob column must be referenced last in the column list. Otherwise in case of the parameter values being sufficiently large for the previous varchar data the SQL statement fails with oracle specific error: ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column Example of this behavior was found in this old issue: 27792 To reproduce an older version of the retail logclient table (from 16Q2) can be used as it had still both a.) json column of type clob b.) msg column of type varchar c.) Alphabetic order on columns has json coming before msg (that is used by unfixed hibernate. Example reproducer is short following java snippet (see steps to reproduce) which essentially builds a ca. 2k varchar value + a big value for the clob column and does an insert. The issue was also be seen in the wild happening in a 16Q2 + oracle 11g instance. NOTE: Test case above cannot be reproduce in latest pi of retail as issue 30652 removed the dmsg varchar column as it contained duplicate info anyway. But as the issue is generic -> reported here. This seems to be fixed in hibernate upstream already but not in the version currently used in Openbravo yet: https://hibernate.atlassian.net/browse/HHH-4635 [^] This 2nd link also has an description of the issue and manual solution (rename columns) to change order: https://bugs.eclipse.org/bugs/show_bug.cgi?id=486883 [^] | ||||||||||||||||||||
Steps To Reproduce | Run following java-snippet against 16q2 retail (or similar table) with oracle: StringBuilder test = new StringBuilder(); for (int i = 0; i < 66000; i++) { test.append("a"); } String json = "test: " + test; StringBuilder test2 = new StringBuilder(); for (int i = 0; i < 1950; i++) { test2.append("a"); } logClient.setMsg("Some Msg Value: " + test2); logClient.setJson(json); OBDal.getInstance().save(logClient); OBDal.getInstance().flush(); | ||||||||||||||||||||
Proposed Solution | Moved to design defect because fix requires to create a non trivial patch in Hibernate. Ideally would wait for library update. | ||||||||||||||||||||
Additional Information | |||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||
Relationships |
| ||||||||||||||||||||
Attached Files | |||||||||||||||||||||
Issue History | |||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||
2018-01-22 20:22 | shuehner | New Issue | |||||||||||||||||||
2018-01-22 20:22 | shuehner | Assigned To | => platform | ||||||||||||||||||
2018-01-22 20:22 | shuehner | Modules | => Core | ||||||||||||||||||
2018-01-22 20:22 | shuehner | Triggers an Emergency Pack | => No | ||||||||||||||||||
2018-01-22 20:22 | shuehner | Relationship added | related to 0037064 | ||||||||||||||||||
2018-01-30 10:35 | alostale | Status | new => acknowledged | ||||||||||||||||||
2018-01-30 10:38 | alostale | Type | defect => design defect | ||||||||||||||||||
2018-01-30 10:38 | alostale | Proposed Solution updated | |||||||||||||||||||
2018-08-09 08:24 | caristu | Relationship added | related to 0030652 | ||||||||||||||||||
2018-08-10 15:22 | hgbot | Checkin | |||||||||||||||||||
2018-08-10 15:22 | hgbot | Note Added: 0106290 | |||||||||||||||||||
2018-08-10 15:24 | caristu | Note Added: 0106291 | |||||||||||||||||||
2021-10-06 13:35 | cberner | Note Added: 0132198 | |||||||||||||||||||
2021-10-14 09:30 | cberner | Assigned To | platform => cberner | ||||||||||||||||||
2021-10-14 09:30 | cberner | Status | acknowledged => scheduled | ||||||||||||||||||
2021-10-14 09:34 | cberner | Note Added: 0132336 | |||||||||||||||||||
2021-10-14 09:34 | cberner | Status | scheduled => resolved | ||||||||||||||||||
2021-10-14 09:34 | cberner | Fixed in Version | => PR20Q4 | ||||||||||||||||||
2021-10-14 09:34 | cberner | Fixed in SCM revision | => 4ce8dfed86f96817045d31e462d5cbc9eb4a3c27 | ||||||||||||||||||
2021-10-14 09:34 | cberner | Resolution | open => fixed | ||||||||||||||||||
2021-10-14 09:34 | cberner | Review Assigned To | => cberner | ||||||||||||||||||
2021-10-14 09:34 | cberner | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|