Spaces missing out in migrated confluence internal page links

confluence
link
migration
xwiki
#1

Here is my migrated page, you can see the spaces all left out during migration,

image

Here is the confluence page,

image

Integration Testing link is redirecting to create. Also i have checked in entities.xml file where the xml is fine.

0 Likes

#2

Looks like https://jira.xwiki.org/browse/CONFLUENCE-24.

0 Likes

#3

@tmortagne

Related bug has been closed, i have updated the extension version, but still am facing the same error i was reported.

0 Likes

#4

Make sure all Confluence related modules are 9.1.6. Try to restart maybe to be really sure the old implementation hasn’t been kept somewhere.

0 Likes

#5

Yes, i almost upgraded the version to 9.1.6 and restarted apache tomcat server. Still the problem remains.

Can you notifiy the location? i will remove it manually?

0 Likes

#6

I meant in memory. If you restarted then it should be OK.

Trying on a fresh instance of XWiki on my side with the packages you provided in the Jira issue.

0 Likes

#7

So on a fresh instance I can confirm I don’t loose the white space before or after the link with the package I used for the test. The fix I wrote was for links containing ri:page, ri:space or ri:user elements. Maybe yours are different ?

0 Likes

#8

@tmortagne

Earlier:

image

After fix:

image

After fix, space before was fixed, but space after still persists. Also checked the XML, where the source looks like this,

image

0 Likes

#9

Could you create a new jira issue with a package so that I can debug exactly what more I need to workaround in the white space cleaner ?

0 Likes

#10

Created, https://jira.xwiki.org/browse/CONFLUENCE-37

0 Likes

#11

Indeed, seems to be related to the CDATA which is an invisible element in HTML. Need to hack something for it to be taken into account as plain text by the cleaner.

0 Likes