Bug 971611

Summary: Error when accessing a site with a non-ASCII name
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Miroslav Cupák <mcupak>
Component: PortalAssignee: Default User <jbpapp-maint>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bdawidow, dpospisi, epp-bugs, mcupak, tkyjovsk
Target Milestone: ER02   
Target Release: 6.1.0   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Firefox 21.0
Last Closed: 2013-11-07 14:21:55 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:
Attachments:
Description Flags
Server log. none

Description Miroslav Cupák 2013-06-06 22:51:18 UTC
Description of problem:
A site with a non-ASCII name can be created. However, it is not displayed when a user tries to access it and the following error is thrown:

An error occured while cache user profile: javax.servlet.ServletException: java.lang.IllegalArgumentException: JBWEB002039: Control character in cookie value or attribute

See the attached part of the server log for more details.

Steps to Reproduce:
1. Start the portal and sign in as root.
2. Go to Site > Manage Sites > Add new portal.
3. Set the site name to something non-ASCII, e.g. "ščť", add some permissions and save it.
4. Access the newly created site via Site > ščť. 

Actual results:
The site is not displayed and an error is logged.

Expected results:
The site can be accessed properly.

Comment 1 Miroslav Cupák 2013-06-06 22:52:43 UTC
Created attachment 757948 [details]
Server log.

Comment 2 Lucas Ponce 2013-06-13 14:41:31 UTC
Redirect cookie stored the name of the site as a value in plain text.
We've made a workaround to store the name of the site encoded, so then no issues with non-ascii.

PR sent.

I've done a couple of tests with no errors with following site's name: "ščť" and "árbol"