Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18999

Fix date formatting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0-HF38, 6.0-HF21
    • Fix Version/s: 5.8.0-HF40, 6.0-HF27, 7.10-HF05, 8.2
    • Component/s: Core

      Description

      DateParser#formatW3CDateTime does not handle date on 3 digits or less, which make the parsing raise a NumberFormatException error

      java.lang.NumberFormatException: For input string: "2-11"
      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_51]
      at java.lang.Integer.parseInt(Integer.java:580) ~[?:1.8.0_51]
      at java.lang.Integer.parseInt(Integer.java:615) ~[?:1.8.0_51]
      at org.nuxeo.ecm.core.schema.utils.DateParser.readYear(DateParser.java:114) ~[nuxeo-core-schema-6.0-HF12.jar:?]
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: