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

Livetable on the homepage of forums fails to display results if a forum contains a dot in its name #19

Closed
lucaa opened this Issue Jul 11, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@lucaa
Copy link

lucaa commented Jul 11, 2018

  • Create a forum called "About this wiki..."
  • The list of forums on the homepage of the application is not loading anymore

The cause of the issue is that, in page ForumCode.GetForumsJson , the velocity that displays the results interprets wiki syntax: the dot is escaped in the name of the document by a backslash, which is escaped in json with another backslash, which results in 2 backslashes one next to another .
The 2 backslashes is the wiki syntax for newline and when wiki syntax is interpreted, this results in a newline in the middle of a json string, which breaks the json (invalid).

Adding parameter wiki='false' to the velocity macro fixes the issue.

acotiuga added a commit that referenced this issue Jul 11, 2018

Livetable on the homepage of forums fails to display results if a for…
…um contains a dot in its name #19

* Make sure the forum live table JSON is not interpreted as wiki syntax.

@acotiuga acotiuga self-assigned this Jul 11, 2018

@acotiuga acotiuga added this to the 2.6 milestone Jul 11, 2018

@acotiuga

This comment has been minimized.

Copy link
Collaborator

acotiuga commented Jul 11, 2018

Thanks for the solution!

@acotiuga acotiuga closed this Jul 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment