Closed oanalavinia closed 3 years ago
Investigation:
The backlink is needed for updating the diagram content when the linked page is renamed. The problem is that a backlink is saved using the fullname of the reference and here that fullname is truncated at 255 characters to avoid db issues on older xwiki versions. And in the case of those 2 pages the fullname will actually remain the same after being truncated, causing NonUniqueObjectException
Have 2 pages whose fullnames are longer than 255 characters and the first 255 characters are the same. For example, have a page whose fullname is longer than 250 characters and it has 2 children pages (or 2 attachments) named
TestPage1
andTestPage2
Steps to reproduce
Expected result The save will not generate any problems
Actual result There are errors in the xwiki console that suggest that it failed to add a backlink from the referenced pages to this diagram. The same error will appear while saving any diagram. As a result, the content of any diagram will not be updated after renaming a linked page