Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6028

StackOverflow error when trying to format a null Date

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 M3
    • 3.0 M2
    • {Unused} APIs
    • None
    • Trivial

    Description

      $xwiki.formatDate(null) will enter an infinite recursion, ending in a StackOverflowError, but generating a lot of garbage in the logs before that (there's a wrong e.printStackTrace before each recursion step, which prints longer and longer stacktraces).

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: