Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-45103

AlphaNumeric sort NumberFormatException

    XMLWordPrintable

Details

    • Bug
    • Status: CLOSED
    • Critical
    • Resolution: Fixed
    • 20.3, 21.0
    • 20.3, 21.0, 22.0 [Tentative]
    • Kernel
    • None
    • Verified
    • Verified
      1. Create course site
      2. Use sections tool
      3. Add manual sections with very long numeric name ("9999372036854775807")
      4. Confirm sorting works.
      5. Confirm no errors in logs.

    Description

      caused by: java.lang.NumberFormatException: For input string: "11720217301000"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
      at java.lang.Integer.parseInt(Integer.java:583)
      at java.lang.Integer.parseInt(Integer.java:615)
      at org.sakaiproject.util.comparator.AlphaNumericComparator.lambda$new$1(AlphaNumericComparator.java:27)

      Gliffy Diagrams

        Zeplin

          Attachments

            Activity

              People

                Unassigned Unassigned
                ottenhoff Sam Ottenhoff
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Git Integration