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.
Created attachment 757948 [details] Server log.
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"