Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0028687 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | always | 2015-01-20 12:41 | 2015-11-23 21:17 | |||
Reporter | caristu | View Status | public | |||||
Assigned To | caristu | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR16Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | fb1256d74142 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 33720 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0028687: IllegalArgumentException should be captured in QueryListDataSource | |||||||
Description | IllegalArgumentException should be captured in QueryListDataSource class. If we have a widget that displays a Date column and some of the records have a null value, then the widget records are not displayed because the following exception is thrown: java.lang.IllegalArgumentException: Cannot format given Object as a Date at java.text.DateFormat.format(DateFormat.java:298) at java.text.Format.format(Format.java:157) at org.openbravo.client.querylist.QueryListDataSource.getData(QueryListDataSource.java:226) | |||||||
Steps To Reproduce | 1) Install the attached module 2) Give access to a role for the widget "Null Date" 3) Add that widget into the workspace, notice that it does not display any record and the mentioned exception appears in the log | |||||||
Proposed Solution | Check if 'value' is null before performing the following operation: xmlDateFormat.format(value); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0081806) hgbot (developer) 2015-11-13 10:08 |
Repository: erp/devel/pi Changeset: fb1256d74142b1659cd5cce801074fb37abd2eaf Author: Carlos Aristu <carlos.aristu <at> openbravo.com> Date: Fri Nov 13 10:07:21 2015 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/fb1256d74142b1659cd5cce801074fb37abd2eaf [^] fixes issue 28687: IllegalArgumentException in QueryListDataSource The exception will not be thrown anymore as we now check if value is null before executing xmlDateFormat.format(value). --- M modules/org.openbravo.client.querylist/src/org/openbravo/client/querylist/QueryListDataSource.java --- |
(0081869) alostale (viewer) 2015-11-16 12:18 |
code reviewed + tested |
(0082225) hudsonbot (viewer) 2015-11-23 21:17 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7b56bebaaa88 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2015-01-20 12:41 | caristu | New Issue | |
2015-01-20 12:41 | caristu | Assigned To | => AugustoMauch |
2015-01-20 12:41 | caristu | OBNetwork customer | => No |
2015-01-20 12:41 | caristu | Modules | => Core |
2015-01-20 12:41 | caristu | Support ticket | => 33720 |
2015-01-20 12:41 | caristu | Resolution time | => 1428271200 |
2015-01-20 12:41 | caristu | Triggers an Emergency Pack | => No |
2015-01-20 12:42 | caristu | Issue Monitored: networkb | |
2015-01-20 12:59 | caristu | File Added: com.openbravo.support.widget-1.0.0.obx | |
2015-01-20 12:59 | caristu | Proposed Solution updated | |
2015-01-20 13:00 | caristu | version | => pi |
2015-01-20 13:00 | caristu | Target Version | => 3.0PR15Q2 |
2015-01-25 20:57 | eugeni | Issue Monitored: eugeni | |
2015-01-29 13:17 | alostale | Status | new => acknowledged |
2015-03-11 10:02 | alostale | Priority | high => normal |
2015-03-16 13:25 | jonalegriaesarte | Resolution time | 1428271200 => |
2015-03-17 14:37 | alostale | Assigned To | AugustoMauch => platform |
2015-03-25 09:04 | alostale | Target Version | 3.0PR15Q2 => |
2015-11-13 09:48 | caristu | Assigned To | platform => caristu |
2015-11-13 09:48 | caristu | Status | acknowledged => scheduled |
2015-11-13 10:08 | hgbot | Checkin | |
2015-11-13 10:08 | hgbot | Note Added: 0081806 | |
2015-11-13 10:08 | hgbot | Status | scheduled => resolved |
2015-11-13 10:08 | hgbot | Resolution | open => fixed |
2015-11-13 10:08 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/fb1256d74142b1659cd5cce801074fb37abd2eaf [^] |
2015-11-13 10:08 | caristu | Review Assigned To | => alostale |
2015-11-13 10:08 | caristu | Issue Monitored: alostale | |
2015-11-16 12:18 | alostale | Note Added: 0081869 | |
2015-11-16 12:18 | alostale | Status | resolved => closed |
2015-11-16 12:18 | alostale | Fixed in Version | => 3.0PR16Q1 |
2015-11-23 21:17 | hudsonbot | Checkin | |
2015-11-23 21:17 | hudsonbot | Note Added: 0082225 |
Copyright © 2000 - 2009 MantisBT Group |