Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0042871 | Openbravo ERP | A. Platform | public | 2020-01-14 17:19 | 2020-01-17 09:48 | |||||||
Reporter | alostale | |||||||||||
Assigned To | alostale | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0PR20Q2 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
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 | 0042871: missing log for failing DAL property validations | |||||||||||
Description | When DAL fails to validate a property the failing property is logged but not the entity it belongs to. When the validation that failed is the one checking the size of the value, the complete value is logged, causing a flood in the log. | |||||||||||
Steps To Reproduce | ie. execute the following code: Alert a = OBProvider.getInstance().get(Alert.class); a.setDescription(org.apache.commons.lang.StringUtils.repeat("-", 2001)); The following error is displayed: org.openbravo.base.validation.ValidationException: description: Value (---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------) is too long, it has length 2001, the maximum allowed length is 2000 | |||||||||||
Proposed Solution | Change the log to: 1. Include entity name 2. First display error info, later context 3. Truncate context if it is too long In this case the error should be something like org.openbravo.base.validation.ValidationException: ADAlert.description is too long, it has length 2001, the maximum allowed length is 2000: Value (------------------------------------------------...) | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-01-14 17:19 | alostale | New Issue | ||||||||||
2020-01-14 17:19 | alostale | Assigned To | => platform | |||||||||
2020-01-14 17:19 | alostale | Modules | => Core | |||||||||
2020-01-14 17:19 | alostale | Triggers an Emergency Pack | => No | |||||||||
2020-01-14 17:28 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=20117#r20117 | |||||||||
2020-01-14 17:28 | alostale | Proposed Solution updated | ||||||||||
2020-01-15 10:19 | alostale | Note Added: 0116887 | ||||||||||
2020-01-15 10:20 | alostale | Relationship added | blocks 0036162 | |||||||||
2020-01-15 10:20 | alostale | Assigned To | platform => alostale | |||||||||
2020-01-15 10:20 | alostale | Review Assigned To | => caristu | |||||||||
2020-01-17 09:24 | hgbot | Checkin | ||||||||||
2020-01-17 09:24 | hgbot | Note Added: 0116976 | ||||||||||
2020-01-17 09:24 | hgbot | Status | new => resolved | |||||||||
2020-01-17 09:24 | hgbot | Resolution | open => fixed | |||||||||
2020-01-17 09:24 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/da317d9719017833c021481154b4c7fd130adf44 [^] | |||||||||
2020-01-17 09:48 | caristu | Note Added: 0116979 | ||||||||||
2020-01-17 09:48 | caristu | Status | resolved => closed | |||||||||
2020-01-17 09:48 | caristu | Fixed in Version | => 3.0PR20Q2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|