Bad date can cause problems in org.dspace.sort.OrderFormatDate.makeSortString
-----------------------------------------------------------------------------
Key: DS-312
URL: http://jira.dspace.org/jira/browse/DS-312
Project: DSpace 1.x
Issue Type: Bug
Reporter: Flávio Botelho
Exception caused by the following string in date field '19--'
That's obviously bad data, but as Dspace doesn't enforce any kind of data
validation, it should not break because of it.
Exception in thread "main" java.util.DuplicateFormatFlagsException: Flags = '0'
at java.util.Formatter$Flags.parse(Formatter.java:4140)
at java.util.Formatter$FormatSpecifier.flags(Formatter.java:2555)
at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2625)
at java.util.Formatter.parse(Formatter.java:2480)
at java.util.Formatter.format(Formatter.java:2414)
at java.util.Formatter.format(Formatter.java:2367)
at java.lang.String.format(String.java:2769)
at
org.dspace.sort.OrderFormatDate.makeSortString(OrderFormatDate.java:63)
at org.dspace.sort.OrderFormat.makeSortString(OrderFormat.java:131)
at org.dspace.browse.IndexBrowse.getSortValues(IndexBrowse.java:531)
at org.dspace.browse.IndexBrowse.indexItem(IndexBrowse.java:367)
at org.dspace.browse.IndexBrowse.createIndex(IndexBrowse.java:1106)
at org.dspace.browse.IndexBrowse.main(IndexBrowse.java:661)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel