Bug 794384 (JBEPP-1428)
| Summary: | Unicode characters handling problem | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 5 | Reporter: | Miroslav Cupák <mcupak> |
| Component: | unspecified | Assignee: | Ken Finnigan <ken> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.2.0.CR03 | CC: | jmorgan, ken, kfinniga, mcupak, ndrw_cheung, tkyjovsk |
| Target Milestone: | --- | ||
| Target Release: | 5.2.1.GA | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/JBEPP-1428 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
HTTP Request parameters were retrieved before the character encoding was set to UTF-8. The default character encoding of ISO-8859-1 was used instead, leading to corrupted characters. The fix ensures character encoding is set to UTF-8 before Request parameters are accessed. Correct unicode characters are now returned in form posts.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-01 15:36:28 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: | |||
|
Description
Miroslav Cupák
2011-12-01 16:37:11 UTC
Link: Added: This issue is related to JBQA-5579 Release Notes Docs Status: Added: Not Required Link: Added: This issue depends GTNPORTAL-2342 Release Notes Docs Status: Removed: Not Required Added: Not Yet Documented Release Notes Text: Added: CAUSE HTTP Request parameters were retrieved before the character encoding was set to UTF-8 CONSEQUENCE The default character encoding of ISO-8859-1 was used instead, leading to mangled characters FIX Set the character encoding to UTF-8 before Request parameters are accessed RESULT Correct unicode characters are returned in form posts
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
HTTP Request parameters were retrieved before the character encoding was set to UTF-8. The default character encoding of ISO-8859-1 was used instead, leading to corrupted characters. The fix ensures character encoding is set to UTF-8 before Request parameters are accessed. Correct unicode characters are now returned in form posts.
Hi. Our portal runs on SLES version 10.2 and after upgrading the portal to version 5.2.1, I tried the Car booking example (I got the code from JBOSS EPP 5.1.0 Src in the portlet bridge folder but modified the structure a bit (no code change though) by selecting French on the "choose locale" page, then at the customer details page, I put in some french characters "HéÁb" in the "Prénom" field. After clicking on the submit button, the last page shows the characters as "HéÃb", which is different from what I put in. Note that if I put my portal on a Windows box (Windows 7), the problem does not occur (i.e. Portal version 5.2.1 fixes this problem for Windows). Does this mean the bug fix doesn't work on Linux? Is it possible to get a patch to fix it? Our application is multi-lingual and is dependent on a fix for this. I can upload the source code (with the modified structure) or the war file, and build.xml file I use upon request. Thanks in advance for answering. -Andrew Andrew, If you're running EPP as a supported customer, then you should be creating Red Hat customer portal tickets for issues such as these, so that support can properly handle and log them. From the above it sounds like you are using the version of Portlet Bridge from EPP 5.2.0 with 5.2.1, this is generally not recommended and you should use the version of the Portlet Bridge that was shipped with EPP 5.2.1 Ken Hi, Ken. Thanks for the tip. This could be a stupid question : Where is the portlet bridge that was shipped with EPP 5.2.1? The portlet bridge that I'm using is something that I downloaded from the JBoss Portlet Bridge site (version 2.2.0). I know there is a newer 2.3.1 now, but if there is one that was shipped with EPP 5.2.1, I should use that one. But I can't find it. -Andrew Andrew Inside the EPP v5.2.1 zip download, in the following directory you can find the Portlet Bridge for EPP: /jboss-epp-5.2/portletbridge/ Ken Thanks Ken. The problem still exists when I use portlet bridge version 2.3.0 (the version that comes with EPP 5.2.0) or version 2.3.1 (the latest 2.x version) from JBoss Portlet Bridge website. Will create a support ticket for this. Thanks. -Andrew |