JSPWikiEngine inserts extra escape characters into the URL

Description

Replicated: 6.0.12, 6.0.x (Rev. 115990), Trunk (Rev. 115990)

NOTE: Must have the following property enabled: wiki.formats.engine[creole]=com.liferay.portlet.wiki.engines.jspwiki.JSPWikiEngine

1. Create a wiki article using the title: Test&Test Test2. Edit the front page article and link to the article you just created: [[Test&Test Test]]
3. The link should be blue meaning the page exists. However, the link is changed to the following: http://localhost:8080/web/guest/home/-/wiki/Main/Test%26amp%3BTest+Test
4. When you click on the link that is saved and published, you will navigate to an "Error" page to stating "This page is empty. Use the buttons below to create it or to search for the words in the title."
5. Edit the front page link to: [[Test&Test+Test]]
6. The link should be red meaning the page does not exist.
7. Clicking on the link, you will get an error message saying: "This page does not exist yet and the title is not valid." The title will now be "Test&Test+Test"
8. If I change the URL to "http://localhost:8080/web/guest/home/-/wiki/Main/Test%26Test+Test", the page does exist.

Activity

Show:

Pani Gui July 19, 2012 at 2:10 AM

PASSED Manual Testing following the steps in the description.

Reproduced on:
Tomcat 6.0 + MySQL 5. 6.0.12 EE.

There are extra characters in the URL, it makes the link wrong.

Fixed on:
Tomcat 6.0 + MySQL 5. Portal 6.0.x GIT ID: d734830f0dfd5f67dd12e34a4f045b38072a41a0.
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 429069154604eb8ebd3c11e680e378a4a285fa00.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: c1e99559528d861b5cc81319c813d41f6215a993.

Navigate to another wiki article page correctly through the link.

Michael Saechang July 18, 2012 at 4:30 PM

Committed on:
Portal 6.1.x CE GIT ID: d72cc97413204a746fdcc85aab2c1e10843e0d3a.
Portal 6.2.x GIT ID: 11eccf65c1e32cfd215a47a6d1ad93c250b96664.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Branch Version/s

6.1.x
6.0.x

Backported to Branch

Committed

Priority

Zendesk Support

Created July 16, 2012 at 3:39 PM
Updated June 24, 2023 at 3:53 PM
Resolved July 17, 2012 at 3:08 PM