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

Renaming a page with trailing whitespace causes a broken link in the navigation panel to appear

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.4, 13.0
    • Fix Version/s: 12.10.7, 13.4-rc-1
    • Component/s: Refactoring
    • Labels:
      None
    • Environment:
      Linux Ubuntu 16.04 LTS
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      https://forum.xwiki.org/t/rename-page-with-accidental-trailing-whitespace/8553

       

      steps to reproduce:

      1. from the home page, create a new page whose name has a trailing whitespace. e.g. "test page "
      2. save and view the created page
      3. rename the page, remove the trailing whitespace, check preserve children and update links
      4. click rename

       

      Expected results

      • page name and link in navigation panel updated from "test page " to "test page"

      Actual results

      • page name corrected to "test page", "test page" link appears in navigation panel
      • old link "test page " still shows in navigation panel. clicking it leads to "The requested page could not be found." notice 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              elementerzen darren
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: