IndexBrowse dies fatally when confronting badly-formatted date
--------------------------------------------------------------

                 Key: DS-265
                 URL: http://jira.dspace.org/jira/browse/DS-265
             Project: DSpace 1.x
          Issue Type: Bug
          Components: DSpace API
    Affects Versions: 1.5.2
            Reporter: Samuel Ottenhoff


To replicate:

1) Create item
2) Manually edit metadata
3) Change date fields to single characters like "0" or "1"
4) Run Browse Index: bin/dsrun org.dspace.browse.IndexBrowse -i

Fatal Exception:

Exception in thread "main" java.util.DuplicateFormatFlagsException: Flags = '0'
        at java.util.Formatter$Flags.parse(Formatter.java:4119)
        at java.util.Formatter$FormatSpecifier.flags(Formatter.java:2552)
        at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2622)
        at java.util.Formatter.parse(Formatter.java:2477)
        at java.util.Formatter.format(Formatter.java:2411)
        at java.util.Formatter.format(Formatter.java:2364)
        at java.lang.String.format(String.java:2558)
        at 
org.dspace.sort.OrderFormatDate.makeSortString(OrderFormatDate.java:59)
        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

        

------------------------------------------------------------------------------
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to