Bug 1065987

Summary: W3C validator: Encoding of ampersand characters in URLs
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Lucas Ponce <lponce>
Component: PortalAssignee: Lucas Ponce <lponce>
Status: CLOSED UPSTREAM QA Contact: Tomas Kyjovsky <tkyjovsk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: epp-bugs, lponce, ppalaga
Target Milestone: DR02   
Target Release: 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
JBoss Portal produced xhtml type documents that contained URLs generated in plain-text. This caused issues with W3C validation when certain plain-text characters such as ampersands (&amp;) in URLs were not converted to entities. The fix implements a configuration flag defined in configuration.properties (gatein.w3c.url.encoded), which allows URLs to be encoded to W3C requirements, or maintained in plain text. URLs produced by JBoss Portal can now be rendered according to W3C validation rules. The configuration flag permits the old plain-text behavior for compatibility purposes.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:35:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1050065    

Description Lucas Ponce 2014-02-17 13:01:53 UTC
Description of problem:

JBoss Portal 6.1.0 produces XHTML 1.0 Strict type documents.

For a w3c validation, URLs should be encoded using html entities instead of plain "&" characters.

Version-Release number of selected component (if applicable):

6.1.0

How reproducible:

Always.

Steps to Reproduce:
1. Login into Portal.
2. Review source code generated.
3. Validate with http://validator.w3.org/ tool.

Actual results:

There are a number or URLs with plain "&" characters not compliant with XHTML 1.0 Strict type document spec.

Expected results:

URLs encoded and passing w3c validation test

Additional info:

Comment 2 Peter Palaga 2014-03-21 15:00:54 UTC
https://github.com/gatein/gatein-portal/pull/803 was merged in upstream

Comment 3 Tomas Kyjovsky 2014-05-26 16:05:33 UTC
Checked manually with homepage (anonymous) and sitemap (authenticated). Sucessfuly ran w3c validation script from Bug 1050065.

Comment 6 Red Hat Bugzilla 2025-02-10 03:35:06 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.