Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0029492 | Openbravo ERP | K. Packaging | public | 2015-04-01 14:36 | 2017-03-15 20:21 |
|
Reporter | aldoescob | |
Assigned To | alostale | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | CentOS 6.4 |
Product Version | 3.0PR14Q3.5 | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | |
Web browser | Google Chrome, Mozilla Firefox |
Modules | Openbravo 3.0 Framework |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0029492: Wrong export of a view |
Description | Openbravo exports bad a view (with ant export.database), what causes rebuild error. I created a SRCT_INVOICE_DDPPRL (view in the attached file) |
Steps To Reproduce | Create view (in the example without some columns no-standard)in the database (and Openbravo Application Dictionary) and export it, try reinstall the module. |
Proposed Solution | I changed xml file content and it works, but I think it will generate error in the future in the ant export.database with the module. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0029444 | | acknowledged | Triage Platform Base | SETOF error due to wrong export of function | has duplicate | defect | 0035393 | | closed | platform | IN clause in view not properly exported using postgresql | related to | defect | 0031149 | | acknowledged | Triage Platform Base | "minus" word in PL function shows warning when exporting db | related to | design defect | 0025433 | | acknowledged | Triage Platform Base | Script export.database changes return type stored procedure | related to | backport | 0035467 | 3.0PR17Q1 | closed | alostale | Wrong export of a view | related to | defect | 0035474 | | closed | alostale | Function based indexes do not support arithmetic operations on columns | blocks | defect | 0035341 | | closed | mcobas | Wrong orders shown in "Create Invoices From Orders" window |
|
Attached Files | ERROR_CORCHETE.txt (27,542) 2015-04-01 14:36 https://issues.openbravo.com/file_download.php?file_id=7956&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2015-04-01 14:36 | aldoescob | New Issue | |
2015-04-01 14:36 | aldoescob | Assigned To | => shuehner |
2015-04-01 14:36 | aldoescob | File Added: ERROR_CORCHETE.txt | |
2015-04-01 14:36 | aldoescob | Web browser | => Google Chrome, Mozilla Firefox |
2015-04-01 14:36 | aldoescob | Modules | => Openbravo 3.0 Framework |
2015-04-01 14:36 | aldoescob | Triggers an Emergency Pack | => No |
2015-05-12 16:46 | shuehner | Assigned To | shuehner => platform |
2015-11-10 16:30 | alostale | Relationship added | related to 0029444 |
2015-11-10 16:30 | alostale | Status | new => acknowledged |
2015-11-10 16:32 | alostale | Relationship added | related to 0031149 |
2015-11-10 16:50 | alostale | Relationship added | related to 0025433 |
2015-12-03 22:14 | aldoescob | Note Added: 0082565 | |
2015-12-03 22:16 | aldoescob | Note Edited: 0082565 | bug_revision_view_page.php?bugnote_id=0082565#r10394 |
2017-03-02 14:05 | alostale | Web browser | Google Chrome, Mozilla Firefox => Google Chrome, Mozilla Firefox |
2017-03-02 14:05 | alostale | Note Added: 0094686 | |
2017-03-02 14:05 | alostale | Type | defect => design defect |
2017-03-02 14:06 | alostale | Relationship added | has duplicate 0035393 |
2017-03-09 09:03 | hgbot | Checkin | |
2017-03-09 09:03 | hgbot | Note Added: 0094846 | |
2017-03-09 09:03 | hgbot | Status | acknowledged => resolved |
2017-03-09 09:03 | hgbot | Resolution | open => fixed |
2017-03-09 09:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/4e1a7fb052d2527f1419e9c9394f2bba4d8edc3c [^] |
2017-03-09 09:03 | alostale | Assigned To | platform => alostale |
2017-03-09 09:03 | alostale | Review Assigned To | => caristu |
2017-03-09 09:03 | alostale | Web browser | Google Chrome, Mozilla Firefox => Google Chrome, Mozilla Firefox |
2017-03-09 12:34 | vmromanos | Relationship added | blocks 0035341 |
2017-03-09 12:45 | hgbot | Checkin | |
2017-03-09 12:45 | hgbot | Note Added: 0094872 | |
2017-03-09 12:45 | hgbot | Checkin | |
2017-03-09 12:45 | hgbot | Note Added: 0094873 | |
2017-03-09 12:45 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/4e1a7fb052d2527f1419e9c9394f2bba4d8edc3c [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/feb12dbe044016971306fec49b52a8934d15a135 [^] |
2017-03-09 12:53 | alostale | Issue cloned | 0035467 |
2017-03-09 12:54 | alostale | Relationship added | related to 0035467 |
2017-03-09 14:15 | caristu | Note Added: 0094878 | |
2017-03-09 14:15 | caristu | Status | resolved => closed |
2017-03-09 14:15 | caristu | Fixed in Version | => 3.0PR17Q2 |
2017-03-10 13:49 | alostale | Relationship added | related to 0035474 |
2017-03-15 20:21 | hudsonbot | Checkin | |
2017-03-15 20:21 | hudsonbot | Note Added: 0095280 | |
Notes |
|
(0082565)
|
aldoescob
|
2015-12-03 22:14
(edited on: 2015-12-03 22:16) |
|
look at that "]" in "...8B723BF2C23E3774A']))..." in the Original xml file's content generated in export.database; this "]" generates error when the module is installed
|
|
|
|
This is caused because of how PG internally stores the view once created. Regardless the original statement used for its creation, PG does some transformation not being possible to retrieve the original code. |
|
|
(0094846)
|
hgbot
|
2017-03-09 09:03
|
|
Repository: erp/devel/pi
Changeset: 4e1a7fb052d2527f1419e9c9394f2bba4d8edc3c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 09 09:02:05 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4e1a7fb052d2527f1419e9c9394f2bba4d8edc3c [^]
fixed bug 29492: views with several IN or NOT IN clasues fail in PG
In PG, views that contain more than one IN or NOT IN clauses were not correctly
exported.
The regexps that parses and PG IN and NOT IN clauses was including from the begining
of 1st clause till the end of the last one.
These regexps have been fixed to be more restrictive so that they stop looking
for the IN contents on first ].
---
M src-db/database/lib/dbsourcemanager.jar
---
|
|
|
(0094872)
|
hgbot
|
2017-03-09 12:45
|
|
Repository: erp/devel/dbsm-main
Changeset: 9417f8656b488bbb678c4e7049fd3d0f1ab600b5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 09 08:56:11 2017 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/9417f8656b488bbb678c4e7049fd3d0f1ab600b5 [^]
related to bug 29492: added test cases
Added failing (before fix 29492) test cases: views with more than one IN or
NOT IN clauses are not correctly converted in PG.
---
M src-test/src/org/openbravo/dbsm/test/model/Views.java
A src-test/model/views/IN_VIEW.xml
A src-test/model/views/NOT_IN_VIEW.xml
---
|
|
|
(0094873)
|
hgbot
|
2017-03-09 12:45
|
|
Repository: erp/devel/dbsm-main
Changeset: feb12dbe044016971306fec49b52a8934d15a135
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 09 08:59:50 2017 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/feb12dbe044016971306fec49b52a8934d15a135 [^]
fixed bug 29492: views with several IN or NOT IN clasues fail in PG
In PG, views that contain more than one IN or NOT IN clauses were not correctly
exported.
The regexps that parses and PG IN and NOT IN clauses was including from the begining
of 1st clause till the end of the last one.
These regexps have been fixed to be more restrictive so that they stop looking
for the IN contents on first ].
---
M src/org/apache/ddlutils/platform/postgresql/PostgreSQLStandarization.java
---
|
|
|
|
Code reviewed + tested OK in pi@7c508cdd7e2e |
|
|
|
|