Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-265

IndexBrowse dies fatally when confronting badly-formatted date

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      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)

        Attachments

          Activity

            People

            Assignee:
            grahamtriggs Graham Triggs
            Reporter:
            ottenhoffs Samuel Ottenhoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: