Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12774

resource explorer doesn't open when it contains multiple files with long numerical names

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.10.1, 4.9.12, 4.11.0
    • 4.9.11
    • None
    • None
    • 4.10.1
    • Oui

      Steps to reproduce bug:

      • Add attached zip to resource explorer (unzip files on upload)

      Bug:

      Caused by: java.lang.IllegalArgumentException: Comparison method violates its general contract!
      at java.base/java.util.TimSort#mergeHi:903
      at java.base/java.util.TimSort#mergeAt:520
      at java.base/java.util.TimSort#mergeForceCollapse:461
      at java.base/java.util.TimSort#sort:254
      at java.base/java.util.Arrays#sort:1308
      at java.base/java.util.ArrayList#sort:1804
      at java.base/java.util.stream.SortedOps$RefSortingSink#end:392
      at java.base/java.util.stream.Sink$ChainedReference#end:261
      at java.base/java.util.stream.Sink$ChainedReference#end:261
      at java.base/java.util.stream.Sink$ChainedReference#end:261
      at java.base/java.util.stream.AbstractPipeline#copyInto:510
      at java.base/java.util.stream.AbstractPipeline#wrapAndCopyInto:499
      at java.base/java.util.stream.ForEachOps$ForEachOp#evaluateSequential:151
      at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef#evaluateSequential:174
      at java.base/java.util.stream.AbstractPipeline#evaluate:234
      at java.base/java.util.stream.ReferencePipeline#forEach:596
      at org.ametys.plugins.explorer.resources.generators.ResourcesExplorerGenerator#saxCollection:195
      at org.ametys.plugins.explorer.resources.generators.ResourcesExplorerGenerator#generate:99
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581
      ... 75 more 

      There seems to be a bug preventing comparison between files with long numerical names

        1. image-2026-07-21-16-26-25-699.png
          21 kB
          Magali Franchet

            raphael Raphaël Franchet
            jhawken James Hawken
            Raphaël Franchet Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: