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

Incorrect default value in link creation dialog leads to invalid page links in terminal pages

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Blocker
    • None
    • 16.8.0-rc-1
    • CKEditor
    • W11Pro, XWiki 17.3.0
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. Enable Advanced User mode.
      2. Create a new terminal page
      3. Select a word or phrase that is not already a link.
      4. Use the shortcut CTRL + K to trigger the link creation dialog (or use the editor toolbar)
      5. Proceed to create the link without editing the default suggestion.

      Actual result

      User creates invalid link

      xwiki:Main.{selectedWord}

      and unintentionally may create a non-existent page under the Main space.

      Expected result

      Before the regression the dialog uses to only fill the field with the selected word: in such case the creation link was using [lastSpace of current reference].[selectedWord].WebHome for creating the page.

      Note

      This issue does not occur in versions before XWiki 16.8.0. It has been observed starting from XWiki 16.8.0-RC1 with this change

      Attachments

        1. call link creation dialog on non-terminal page.png
          148 kB
          Nikita Petrenko
        2. call link creation dialog on terminal page.png
          162 kB
          Nikita Petrenko
        3. link creation.png
          280 kB
          Nikita Petrenko
        4. page creation after proceeding by invalid link.png
          114 kB
          Nikita Petrenko

        Issue Links

          Activity

            People

              surli Simon Urli
              npetrenko Nikita Petrenko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: