[ http://jira.dspace.org/jira/browse/DS-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Graham Triggs resolved DS-265. ------------------------------ Documentation Status: Not Required Resolution: Fixed Fix Version/s: 1.6.0 Description of bug is incorrect. Problem occurs if you have a 4 character long value, in which a '-' is present. ie. 0-00 00-0 In such a case, it would determine from the position of '-' that padding is required. However, it would only use the position of the '-' to determine the amount of padding if the length of the string is greater than 4. As the length is exactly 4, it would use that to determine the amount of padding, and attempt to format to a width of 0. > 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 > Assignee: Graham Triggs > Fix For: 1.6.0 > > > 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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel