Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0036109 | Openbravo ERP | 01. General setup | public | 2017-05-25 16:27 | 2017-06-13 10:07 |
|
Reporter | ngarcia | |
Assigned To | inigosanchez | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q3 | |
Merge Request Status | |
Review Assigned To | alostale |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 46623 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0036109: If Delete Client Process fails, it does not show any error message and leaves the triggers disabled |
Description | If Delete Client Process fails, it does not show any error message and leaves the triggers disabled |
Steps To Reproduce | As System Admin role:
Go to Modules window and set Core as In Development
Go to Tables and Columns window and set ProductCategoryAccounts (M_Product_Category_Acct) as View
Launch the Delete Client process
Check Process completed successfully message is shown but the log shows:
ERROR: null value in column "ad_client_id" violates not-null constraint
Check all the triggers are disabled. You could use the query from the 'Disabled triggers' alert |
Proposed Solution | It should be displayed that there was an error in the process and all the triggers should be enabled |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0037862 | | closed | platform | Delete Client process finishes with error if there exists records in OBANALY_Tree_Closure table |
|
Attached Files | deleteClient-fails.diff (453) 2017-06-08 13:02 https://issues.openbravo.com/file_download.php?file_id=10831&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2017-05-25 16:27 | ngarcia | New Issue | |
2017-05-25 16:27 | ngarcia | Assigned To | => Triage Finance |
2017-05-25 16:27 | ngarcia | OBNetwork customer | => Yes |
2017-05-25 16:27 | ngarcia | Modules | => Core |
2017-05-25 16:27 | ngarcia | Support ticket | => 46623 |
2017-05-25 16:27 | ngarcia | Resolution time | => 1497477600 |
2017-05-25 16:27 | ngarcia | Triggers an Emergency Pack | => No |
2017-05-25 16:27 | ngarcia | Issue Monitored: networkb | |
2017-05-25 16:35 | aferraz | Assigned To | Triage Finance => platform |
2017-06-02 11:19 | alostale | Status | new => acknowledged |
2017-06-07 12:23 | inigosanchez | Status | acknowledged => scheduled |
2017-06-07 12:23 | inigosanchez | Assigned To | platform => inigosanchez |
2017-06-08 10:45 | inigosanchez | Review Assigned To | => alostale |
2017-06-08 12:10 | hgbot | Checkin | |
2017-06-08 12:10 | hgbot | Note Added: 0097212 | |
2017-06-08 12:57 | inigosanchez | Note Added: 0097213 | |
2017-06-08 13:02 | inigosanchez | File Added: deleteClient-fails.diff | |
2017-06-08 13:07 | hgbot | Checkin | |
2017-06-08 13:07 | hgbot | Note Added: 0097215 | |
2017-06-08 13:07 | hgbot | Status | scheduled => resolved |
2017-06-08 13:07 | hgbot | Resolution | open => fixed |
2017-06-08 13:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/97ba8779cc16fa4c91002ca3607624e91ef17adc [^] |
2017-06-09 02:49 | hudsonbot | Checkin | |
2017-06-09 02:49 | hudsonbot | Note Added: 0097260 | |
2017-06-09 02:49 | hudsonbot | Checkin | |
2017-06-09 02:49 | hudsonbot | Note Added: 0097261 | |
2017-06-09 11:13 | alostale | Note Added: 0097270 | |
2017-06-09 11:13 | alostale | Status | resolved => new |
2017-06-09 11:13 | alostale | Resolution | fixed => open |
2017-06-09 13:08 | inigosanchez | Status | new => scheduled |
2017-06-09 13:09 | hgbot | Checkin | |
2017-06-09 13:09 | hgbot | Note Added: 0097282 | |
2017-06-09 13:10 | inigosanchez | Status | scheduled => resolved |
2017-06-09 13:10 | inigosanchez | Resolution | open => fixed |
2017-06-09 22:41 | hudsonbot | Checkin | |
2017-06-09 22:41 | hudsonbot | Note Added: 0097297 | |
2017-06-13 10:07 | alostale | Note Added: 0097343 | |
2017-06-13 10:07 | alostale | Status | resolved => closed |
2017-06-13 10:07 | alostale | Fixed in Version | => 3.0PR17Q3 |
2018-02-08 16:33 | ngarcia | Relationship added | related to 0037862 |
Notes |
|
(0097212)
|
hgbot
|
2017-06-08 12:10
|
|
|
|
|
Alternative steps to reproduce:
- Apply the attached patch in order to raise an error from database in the Delete Client process.
- Create a client for testing purposes from Initial Client Setup process.
- Delete the created client from Delete Client process.
- Note than all the triggers are disabled and the client is not removed properly but a success message is shown. |
|
|
(0097215)
|
hgbot
|
2017-06-08 13:07
|
|
Repository: erp/devel/pi
Changeset: 97ba8779cc16fa4c91002ca3607624e91ef17adc
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Thu Jun 08 13:06:41 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/97ba8779cc16fa4c91002ca3607624e91ef17adc [^]
Fixed issue 36109: Delete Client process doesn't managed exceptions properly
The problem was that Delete Client process didn't manage exceptions properly. If Delete Client Process
was fail, it did not show any error message and leaved the triggers disabled.For example, if a problem
in the database was raised, the UI was not take into account the problem as expected and the user did
not realize anything.
Now the process does handle exceptions as expected. If the Delete Client process fails, all the
constraints are enabled again. This occurres because enableConstraints method is executed. Now a
messagge is displayed in the UI in order to inform to the user. Besides, if the Delete Client process
fails a rollback is done.
---
M src/org/openbravo/service/system/SystemService.java
---
|
|
|
|
|
|
|
|
|
|
|
|
(0097282)
|
hgbot
|
2017-06-09 13:09
|
|
Repository: erp/devel/pi
Changeset: 359c62f9c661d1afe392c33f36fd399da27b76bc
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Fri Jun 09 13:07:44 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/359c62f9c661d1afe392c33f36fd399da27b76bc [^]
Related with issue 36109: code review improvements related with log
---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_process/DeleteClient.java
M src/org/openbravo/service/system/SystemService.java
---
|
|
|
|
|
|
|
|