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

Uncaught error in browser's console when opening the notification list

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 11.3, 10.11.8
    • 11.1, 10.11.4
    • Notifications
    • None
    • Windows 10 Pro 64 bit, IE11, using a local instance of XWiki on PostgreSQL 11 and HSQL 2.4.1
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Login with Admin (preferably on a fresh instance)
      2. Click on the Notifications bell to open the notifications list

      EXPECTED RESULTS

      The notifications list is displayed without errors.

      ACTUAL RESULTS

      When notifications list is opened, in browser's console is encountered the following error (stacktrace from Chrome 73):

      Uncaught TypeError: Cannot read property 'date' of undefined
          at Object.<anonymous> (NotificationsDisplayerUIX?language=en&docVersion=1.1:1)
          at i (jquery.js:3187)
          at Object.fireWith [as resolveWith] (jquery.js:3317)
          at Object.e.(:1160/xwiki/bin/view/Main/anonymous function) [as resolve] (http://localhost:1160/xwiki/webjars/wiki%3Axwiki/jquery/2.2.2/jquery.min.js?r=1:2:28893)
          at Object.o.showNotifications (NotificationsMacro?language=en&docVersion=1.1:1)
          at Object.<anonymous> (NotificationsMacro?language=en&docVersion=1.1:1)
          at i (jquery.js:3187)
          at Object.fireWith [as resolveWith] (jquery.js:3317)
          at z (jquery.js:8785)
          at XMLHttpRequest.<anonymous> (jquery.js:9151)

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: