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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 11.1, 10.11.4
    • Fix Version/s: 11.3, 10.11.8
    • Component/s: Notifications
    • Labels:
      None
    • Environment:
      Windows 10 Pro 64 bit, IE11, using a local instance of XWiki on PostgreSQL 11 and HSQL 2.4.1
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: