This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d4950622-bd63-4389-ba79-fcd1c9171341 XWIKI-23206 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-a6bb56ba-8415-4d7d-adda-e1137f40bb14 Nikita Petrenko created this issue on 16/May/25 12:31
 
Summary: Incorrect default value in link creation dialog leads to invalid page links
Issue Type: cid:jira-generated-image-avatar-d4950622-bd63-4389-ba79-fcd1c9171341 Bug
Affects Versions: 16.10.8, 17.3.0
Assignee: Unassigned
Components: CKEditor
Created: 16/May/25 12:31
Environment: W11Pro, XWiki 17.3.0
Labels: regression
Priority: cid:jira-generated-image-static-blocker-9e633e58-6948-4977-bd54-60c4dc50e8c3 Blocker
Reporter: Nikita Petrenko
Description:

Steps to reproduce:

  1. Enable Advanced User mode.
  2. Edit a test page in the Sandbox space.
  3. Select a word or phrase that is not already a link.
  4. Use the shortcut CTRL + K to trigger the link creation dialog.
  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

The link creation dialog should not pre-fill the target with

xwiki:Main.{selectedWord}

to avoid accidentally creating invalid or unintended links.

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](https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.8.0RC1/Entry009/)

 
 

3 updates

 
cid:jira-generated-image-avatar-a6bb56ba-8415-4d7d-adda-e1137f40bb14 Changes by Nikita Petrenko on 16/May/25 12:32
 
Description: h3. Steps to reproduce:

# Enable Advanced User mode.
# Edit a test page in the Sandbox space.
# Select a word or phrase that is not already a link.
# Use the shortcut CTRL + K to trigger the link creation dialog.
# Proceed to create the link without editing the default suggestion.

h3. Actual result

User creates invalid link {noformat}xwiki:Main.{selectedWord}{noformat} and unintentionally may create a non-existent page under the Main space.

h3. Expected result

The link creation dialog should not pre-fill the target with {noformat}xwiki:Main.{selectedWord}{noformat} to avoid accidentally creating invalid or unintended links.

h3. 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
]( | https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.8.0RC1/Entry009/ )   ]
Attachment: link creation.png
Attachment: page creation after proceeding by invalid link.png