Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0045729 | Openbravo ERP | Y. DBSourceManager | public | 2021-01-13 17:52 | 2021-06-11 10:18 |
Reporter | shuehner | ||||
Assigned To | shuehner | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | PR21Q3 | Fixed in Version | PR21Q3 | ||
Merge Request Status | approved | ||||
Review Assigned To | |||||
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 | 0045729: export.database fails with some views on oracle with: An invalid XML character (Unicode: 0x0) was found in the CDATA section. | ||||
Description | Problem was found in one specific environment for 3 specific views. Running export.database with the module in development containing those views fails with: [java] Caused by: org.apache.ddlutils.DdlUtilsException: An invalid XML character (Unicode: 0x0) was found in the CDATA section. : /srv/ci/workspace/mod-simple-ci34.18102/modules/org.openbravo.cashposition/src-db/database/model/views/OBCP_ACTUALS_V.xml [java] at org.apache.ddlutils.io.DatabaseIO.readplain(DatabaseIO.java:226) [java] at org.openbravo.ddlutils.task.DatabaseUtils.readDatabaseNoChecks(DatabaseUtils.java:300) [java] at org.openbravo.ddlutils.task.DatabaseUtils.readDatabaseNoChecks(DatabaseUtils.java:289) [java] at org.openbravo.ddlutils.task.DatabaseUtils.readDatabaseNoChecks(DatabaseUtils.java:289) [java] at org.openbravo.ddlutils.task.DatabaseUtils.getMergedDatabaseAndInitialize(DatabaseUtils.java:230) [java] at org.openbravo.ddlutils.task.DatabaseUtils.readDatabase(DatabaseUtils.java:207) [java] at org.openbravo.ddlutils.task.DatabaseUtils.readDatabaseModel(DatabaseUtils.java:450) [java] at org.openbravo.ddlutils.task.ExportDatabase.execute(ExportDatabase.java:211) Technically errors comes from code inside export.database re-reading the just exported xml definition files and failing the the export did write wrong data into them. Comparing diff of the wrong view to earlier state shows that 1 or 3 0x0 byte '0' are added just after the view definition itself inside the CDATA section. The attached diff shows the wrong data. Trigger for when this error is happening + cause of adding 1 or 3 of those bytes is currently unclear. Problem can be reproduced 100% reliably in one environment. This code-snapshot file and revision can reproduce the problem: https://gitlab.com/obcustomers/ob_ob/snapshots/-/blob/a4c6300f70768f2c35e49fe39925f64b2b1d6a4a/Snapshot_Dev_HACK [^] | ||||
Steps To Reproduce | Clone above code-snapshot run install.source on oracle run all modules with type <>'T' into development run export.database Probably just exporting this specific module: "org.openbravo.cashposition" is enough to reproduce the problem | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=15250&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15251&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15252&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15253&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-01-13 17:52 | shuehner | New Issue | |||
2021-01-13 17:52 | shuehner | Assigned To | => platform | ||
2021-01-13 17:52 | shuehner | File Added: oracle-export.database-problem.diff | |||
2021-01-13 17:52 | shuehner | OBNetwork customer | => No | ||
2021-01-13 17:52 | shuehner | Modules | => Core | ||
2021-01-13 17:52 | shuehner | Triggers an Emergency Pack | => No | ||
2021-01-13 17:53 | shuehner | File Added: OBCP_ACTUALS_V.xml | |||
2021-01-13 17:53 | shuehner | File Added: OBCP_CASHPOSDETAIL_INT_V.xml | |||
2021-01-13 17:53 | shuehner | File Added: OBCP_CASHPOSDETAIL_V.xml | |||
2021-01-13 17:54 | shuehner | Note Added: 0125436 | |||
2021-06-09 13:54 | hgbot | Merge Request Status | => open | ||
2021-06-09 13:54 | hgbot | Note Added: 0129264 | |||
2021-06-09 20:02 | shuehner | Target Version | => PR21Q3 | ||
2021-06-09 20:02 | shuehner | Assigned To | platform => shuehner | ||
2021-06-10 07:05 | hgbot | Merge Request Status | open => approved | ||
2021-06-10 07:05 | hgbot | Note Added: 0129295 | |||
2021-06-10 07:05 | hgbot | Note Added: 0129296 | |||
2021-06-11 10:18 | hgbot | Resolution | open => fixed | ||
2021-06-11 10:18 | hgbot | Status | new => closed | ||
2021-06-11 10:18 | hgbot | Fixed in Version | => PR21Q3 | ||
2021-06-11 10:18 | hgbot | Note Added: 0129394 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|