Details
-
Bug
-
Resolution: Fixed
-
Major
-
10.6-rc-1
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
This is because the default EntityReferenceResolver<ResourceReference> used to convert PageReference to DocumentReference adds a WebHome.
For example: [[page:test]] will have the method return test.WebHome, even if test is a terminal page.
The solution is to test for the existence of document pointed to by the reference, even if that's more costly. That's the only way to get a valid list of references. This is important since for example this method is called to save backlinks in the DB and if the reference is wrong then links to terminal pages won't be refactored properly when a page reference is used.
Attachments
Issue Links
- is caused by
-
XWIKI-15377 Provide Page-oriented EntityType, corresponding resolver/serializer and typed *Reference helpers
- Closed
- relates to
-
XWIKI-19539 Refactoring of references (backlinks) don't refactor values of the page parameter of the Include and Display macros
- Closed
-
XWIKI-19628 Links are wrongly saved as backlinks when page references are used and pointing to terminal documents
- Closed