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

Table of contents does not display page hierarchy correctly in email notifications

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 9.11.5, 10.5-rc-1
    • 10.3
    • Notifications
    • Windows 10 Pro 64 bit, Edge 16, Firefox 59, IE11, Chrome 66, using a local instance of XWiki 10.3 on Oracle 11.2
    • Unknown
    • N/A
    • N/A

    Description

      Preconditions: The XWiki instance has the Mail Sending configured. An user (e.g. U1) is created and has a valid e-mail address set on its profile.

      STEPS TO REPRODUCE

      1. Login as U1
      2. Go to Notifications > Settings
      3. Set all Pages Notifications to ON
      4. Login as Admin
      5. Create the following page hierarchy: /aaa/bbb/ccc/ddd/
      6. Trigger the "Notifications daily email" job (as set by default in user's profile) from Scheduler.WebHome
      7. Check the notification email received by the user U1

      EXPECTED RESULTS

      In the email notification received by U1, the TOC displays the page hierarchy correctly, as created by Admin ('aaa' is the parent, 'bbb' is child of 'aaa', 'ccc' is child of 'bbb' and 'ddd' is child of 'ccc').

      ACTUAL RESULTS

      The page hierarchy is incorrectly displayed in TOC: 'aaa' is the parent and 'bbb', 'ccc', 'ddd' are all children of 'aaa' (screenshot attached). However, in the breadcrumbs, the page hierarchy is properly displayed.

      Attachments

        1. after.png
          after.png
          13 kB
        2. Email.jpg
          Email.jpg
          100 kB
        3. incomplete-hierarchy.png
          incomplete-hierarchy.png
          2 kB
        4. Incorrect_TOC_hierarchy.jpg
          Incorrect_TOC_hierarchy.jpg
          99 kB
        5. Instance10.4.jpg
          Instance10.4.jpg
          103 kB
        6. Page_hierarchy.jpg
          Page_hierarchy.jpg
          150 kB

        Activity

          People

            gdelhumeau Guillaume Delhumeau
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: