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

The wiki name is not displayed properly on Notifications list and Notifications Macro for older notifications on subwikis

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 12.5.1, 12.6
    • Fix Version/s: 12.6.1, 12.7-rc-1
    • Component/s: Notifications
    • Labels:
    • Environment:
      Windows 10 Pro 64 bit, Chrome 84, using a local instance of XWiki 12.6 on PostgreSQL 12
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      STEPS TO REPRODUCE

      1. Login as Admin
      2. Create a global user (e.g. U1)
      3. Create a subwiki
      4. Login as the user U1
      5. Go to Notifications > Settings
      6. Set all Pages Notifications to ON
      7. Login as Admin
      8. Create, update and comment some pages on the Main Wiki (more than 10 events)
      9. Create, update and comment some pages on the subwiki as well (more than 10 events)
      10. Login as the user U1
      11. Go to subwiki
      12. Open Notifications list and click 'Load older notifications'
      13. Observe the events
      14. Go to subwiki Dashboard
      15. Click 'Load older notifications' and observe the events

      EXPECTED RESULTS

      The name of the wiki where the events took place is displayed near the link to the respective pages in notifications list, depending where the list is being viewed.

      If the list is viewed in subwiki, for events that took place on Main Wiki is displayed '(Home)', and for events that took place locally, no wiki name is displayed.

      As well, on subwiki's Dashboard Activity Stream, since the events took place in respective subwiki, no wiki name is displayed.

      ACTUAL RESULTS

      On subwiki, events loaded after clicking 'Load older notifications' from the user's notifications list are displayed inverted: those that took place in Main Wiki are without (Home) near the page links and events that took place in this subwiki have (subwiki_name) near the page links although they took place here.

      Also, on subwiki's Dashboard Activity Stream, events loaded after clicking 'Load older notifications' display (subwiki_name) near the page links although they also took place in this subwiki.

      The issue reproduces also on XWiki 12.5.1. I've tested also on XWiki 12.1 and I couldn't reproduce the issue.

        Attachments

          Issue Links

            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: