Special characters like " ' " (Apostrophe) not encoded in URLs for pages.
---------------------------------------------------------------------------
Key: JBPORTAL-1063
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1063
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core
Affects Versions: 2.4 Final
Environment: JBoss AS 4.0.2
Reporter: Sandeep Pujar
Assigned To: Julien Viet
Priority: Minor
Repro steps:
1. Login as admin, create a page with name - "tester's page".
2. A page link would appear on the nav bar as "tester's page".
3. Click on the link and it would not take you to the newly created page.
The link points to <portal path>/tester it skips "'s page" part.
This is because the path part of the URL is not encoded.
The special character " ' " would appear as it is, hence would conflict
with apostrophe in HTML tag href.
The bug seems to be in the file:
org.jboss.portal.core.model.portal.PortalObjectURLFactory method getBaseURL.
Fix:
Instead of replacing only the spaces in the objectref, URL encode the paths.
Eg. If object refs is "portal.default.tester's page"
Url encode every part of the path (portal , default, tester's page) seperately and
then concatenate to build the URL.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira