Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wiki internal links exception. #1044

Open
Nemirtingas opened this issue Apr 1, 2022 · 2 comments
Open

Wiki internal links exception. #1044

Nemirtingas opened this issue Apr 1, 2022 · 2 comments

Comments

@Nemirtingas
Copy link

Since I updated from 5.0.d to 7.1.0, some wiki pages that uses internal links ([[the wiki page]]) are not rendered.
After investigation it seems that the Wiki code uses org/apache/commons/lang/StringEscapeUtils instead of org/apache/commons/lang3/StringEscapeUtils.

After changing to import org.apache.commons.lang3.StringEscapeUtils; and

WikiPageInfo wikiPage = wikiService.getWikiPage(site.getShortName(), StringEscapeUtils.unescapeHtml(link));

to WikiPageInfo wikiPage = wikiService.getWikiPage(site.getShortName(), StringEscapeUtils.unescapeHtml4(link));

It worked as expected.

@PaulDebus
Copy link

We can reproduce this error and the solution. Will the fix be included in the official docker images? Would make our deployment a lot easier.

Thanks!

@Nemirtingas
Copy link
Author

I don't know where to report issues like this. The github repos seems dead and exists only as a repository. They don't use it as an issue reporting/tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants