Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028687
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2015-01-20 12:412015-11-23 21:17
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PrioritynormalResolutionfixedFixed in Version3.0PR16Q1
StatusclosedFix in branchFixed in SCM revisionfb1256d74142
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028687: IllegalArgumentException should be captured in QueryListDataSource

DescriptionIllegalArgumentException 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 Reproduce1) 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 SolutionCheck if 'value' is null before performing the following operation: xmlDateFormat.format(value);
TagsNo tags attached.
Attached Files? file icon com.openbravo.support.widget-1.0.0.obx [^] (5,170 bytes) 2015-01-20 12:59

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 (manager)
2015-11-16 12:18

code reviewed + tested
(0082225)
hudsonbot (developer)
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

- Issue History
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 Modules => Core
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
Powered by Mantis Bugtracker