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

An IllegalArgumentException is thrown when an item contains bitstreams having same mimetype and size

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0, 6.2, 6.3, 7.0
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1

      Description

      If a user try to display an Item containing multiples bitstreams which have same mimetype and size only a blank size is shown. However the following warning is logged:

      WARN  org.dspace.app.webui.servlet.DSpaceServlet @ admin:session_id=8DB51C6BBAAE1DE2FC89EAF587BED535:ip_addr=0:0:0:0
      :0:0:0:1:general_jspui_error:java.lang.IllegalArgumentException\colon; Comparison method violates its general contract!
      java.lang.IllegalArgumentException: Comparison method violates its general contract!
              at java.util.TimSort.mergeLo(TimSort.java:777)
              at java.util.TimSort.mergeAt(TimSort.java:514)
              at java.util.TimSort.mergeCollapse(TimSort.java:441)
              at java.util.TimSort.sort(TimSort.java:245)
              at java.util.Arrays.sort(Arrays.java:1438)
              at java.util.List.sort(List.java:478)
              at java.util.Collections.sort(Collections.java:177)
              at org.dspace.app.util.GoogleMetadata.findLinkableFulltext(GoogleMetadata.java:1054)
      .....

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            haoueclf Marsa Haoua
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: