Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
15.1, 8.4.6, 11.10.10, 12.6.2, 13.10.5
-
None
-
None
-
Unknown
-
Description
How to reproduce:
- create a page Sandbox.A (or non terminal, it doesn't matter)
- put the following content, in syntax XWiki 2.1
[[Sandbox.B]]
Note: the page Sandbox.B should not exist at this point, terminal or non terminal (Sandbox.B.WebHome
- save page.
- At this point, the link to B should appear displayed as a link to a non-existent page (with a question mark)
- create page Sandbox.B as terminal (regardless of the method)
- At this point, back on page A, the link to B appears functional (no longer broken). Clicking on it leads properly to page B.
- go to page B and check the backlinks in the Information tab on page B
Expected result:
- page A appears in the list of backlinks (because there is a valid wiki link from the page A to page B)
Actual result:
- page A does not appear in the list of backlinks .
If at this point page A is saved again, the backlinks will be set properly, because the target page B exists at the moment when the backlinks are updated.
The cause of this is a consequence of XWIKI-12920 which makes the link to a non-existing page (Sandbox.B) be considered, by default, a link to a non-terminal page (Sandbox.B.WebHome) and thus saved in the backlinks table as Sandbox.B.WebHome upon creation of page A. When page Sandbox.B is finally created, the backlink is still Sandbox.B.WebHome, and doesn't get updated until page A is saved again.
Attachments
Issue Links
- blocks
-
XWIKI-17934 Some backlinks are missing upon import of a bunch of terminal pages linking to each other
- Open
- is related to
-
XWIKI-19526 Relative links to self typed as "doc" are not updated correctly on rename
- Closed
- relates to
-
XWIKI-17939 Untyped links to terminal pages are not refactored properly upon move (rename) of the terminal page
- Open
-
XWIKI-18634 Image references are broken when contained in a renamed terminal page
- Open