Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038827 | Openbravo ERP | A. Platform | public | 2018-06-25 14:00 | 2023-07-21 09:07 |
|
Reporter | shuehner | |
Assigned To | caristu | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | 3.0PR18Q3 | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
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 | 0038827: Some trigger error messages are not shown nicely when using PostgreSQL version 10 (shows part of technical error) |
Description | When a database transaction throws an exception the ErrorTextParser class tries to parse it and translates it into a usable end-user message and shows that instead.
That parsing fails with pg10 and parts of the technical exception is shown mixed with the translated message.
When fixing the issue the existing unit tests (in ErrorTextParserTest class) for the parser should get a new test-case to cover the fix. |
Steps To Reproduce | Start with instance having 18Q3 (or at least pi containing those)
Important: Have project to 'reject setting a module in development' when instance purpose is 'Production'.
Change Role to System Administrator
Set instance purpose to 'Production'
Go to module window
Edit entry to 'core' module and mark 'In Development' as active.
Save the edited record.
Expected error message:
Saving failed. Cannot have modules in "In Development" status in a Production instance
Actual error message when using postgresql version10.
Saving failed. Cannot have modules in "In Development" status in a Production instance Where: PL/pgSQL function ad_module_trg() line 33 at RAISE
Here part of the 'Stacktrace' of the error message comes up in the translated text.
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0036911 | | closed | alostale | support PostgreSQL 10 | depends on | backport | 0038829 | 3.0PR18Q2.2 | closed | caristu | Some trigger error messages are not shown nicely when using PostgreSQL version 10 (shows part of technical error) | causes | defect | 0038907 | | closed | caristu | DB errors which several OB messages are not correctly parsed in PG |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-06-25 14:00 | shuehner | New Issue | |
2018-06-25 14:00 | shuehner | Assigned To | => platform |
2018-06-25 14:00 | shuehner | Modules | => Core |
2018-06-25 14:00 | shuehner | Triggers an Emergency Pack | => No |
2018-06-25 14:02 | shuehner | Note Added: 0105359 | |
2018-06-25 15:18 | caristu | Relationship added | related to 0036911 |
2018-06-25 15:18 | caristu | Status | new => scheduled |
2018-06-26 18:02 | caristu | Assigned To | platform => caristu |
2018-06-28 12:21 | hgbot | Checkin | |
2018-06-28 12:21 | hgbot | Note Added: 0105487 | |
2018-06-28 12:27 | hgbot | Checkin | |
2018-06-28 12:27 | hgbot | Note Added: 0105488 | |
2018-06-28 12:27 | hgbot | Status | scheduled => resolved |
2018-06-28 12:27 | hgbot | Resolution | open => fixed |
2018-06-28 12:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/ed73bce3ae3b093cba0908df13b6ffabb73f6564 [^] |
2018-06-28 12:30 | hgbot | Checkin | |
2018-06-28 12:30 | hgbot | Note Added: 0105489 | |
2018-06-28 12:31 | caristu | Review Assigned To | => AugustoMauch |
2018-06-28 16:25 | hgbot | Checkin | |
2018-06-28 16:25 | hgbot | Note Added: 0105498 | |
2018-06-29 15:04 | AugustoMauch | Note Added: 0105510 | |
2018-06-29 15:04 | AugustoMauch | Status | resolved => closed |
2018-06-29 21:06 | hudsonbot | Checkin | |
2018-06-29 21:06 | hudsonbot | Note Added: 0105512 | |
2018-06-29 21:06 | hudsonbot | Checkin | |
2018-06-29 21:06 | hudsonbot | Note Added: 0105513 | |
2018-06-29 21:06 | hudsonbot | Checkin | |
2018-06-29 21:06 | hudsonbot | Note Added: 0105514 | |
2018-06-29 21:06 | hudsonbot | Checkin | |
2018-06-29 21:06 | hudsonbot | Note Added: 0105517 | |
2018-08-02 09:12 | alostale | Fixed in Version | => 3.0PR18Q3 |
2018-08-02 09:12 | alostale | Relationship added | causes 0038907 |
2023-07-21 09:07 | Chris79 | Note Added: 0152771 | |
2023-07-21 10:36 | priyam | Note Deleted: 0152771 | |
Notes |
|
|
|
|
(0105487)
|
hgbot
|
2018-06-28 12:21
|
|
|
|
(0105488)
|
hgbot
|
2018-06-28 12:27
|
|
Repository: erp/devel/pi
Changeset: ed73bce3ae3b093cba0908df13b6ffabb73f6564
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jun 28 12:23:51 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ed73bce3ae3b093cba0908df13b6ffabb73f6564 [^]
fixes issue 38827: Some trigger error messages not shown nicely in PG10
Using capturing groups to retrieve just the DB message (it is surrounded by @) with the regular expression matcher.
---
M src/org/openbravo/erpCommon/utility/ErrorTextParserPOSTGRE.java
---
|
|
|
(0105489)
|
hgbot
|
2018-06-28 12:30
|
|
Repository: erp/devel/pi
Changeset: d3d16bc3e4bb81d4d55926388be98cec7761de6c
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jun 28 12:30:20 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d3d16bc3e4bb81d4d55926388be98cec7761de6c [^]
related to issue 38827: added test case
---
M src-test/src/org/openbravo/test/system/ErrorTextParserTest.java
M src/org/openbravo/test/system/ErrorTextParserTest_data.xsql
---
|
|
|
(0105498)
|
hgbot
|
2018-06-28 16:25
|
|
Repository: erp/devel/pi
Changeset: 25f89f3e6667d80854e3d1b06a251ecb202e49bb
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jun 28 16:24:40 2018 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/25f89f3e6667d80854e3d1b06a251ecb202e49bb [^]
related to issue 38827: fix to avoid random test failures
---
M src-test/src/org/openbravo/test/system/ErrorTextParserTest.java
M src/org/openbravo/test/system/ErrorTextParserTest_data.xsql
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|