Bug 794331 (JBEPP-1376) - Text encoding is lost in serveResources
Summary: Text encoding is lost in serveResources
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1376
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.1.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.1.GA
Assignee: Matt Wringe
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-18 12:06 UTC by Martin Weiler
Modified: 2012-03-27 04:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
It was discovered that when content was served from a portlet, the resource encoding was being rewritten with the default encoding of the running JVM. To work around the issue, users had to serve the resource as a binary, or set the system encoding to ISO-8859-1. The fix implements improved resource handling, which honors the mime type encoding when outputting byte array data.
Clone Of:
Environment:
Last Closed: 2012-02-07 15:48:42 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1376 0 None Closed Text encoding is lost in serveResources 2012-04-19 20:22:16 UTC

Description Martin Weiler 2011-11-18 12:06:53 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000008UApw
Workaround Description: 1. Serve the resource as binary
2. Set the default system encoding to ISO-8859-1
project_key: JBEPP

Platform issue for GTNPC-78 Text encoding is lost in serveResources

Comment 2 Martin Weiler 2011-11-18 12:08:17 UTC
Link: Added: This issue depends GTNPC-78


Comment 3 Thomas Heute 2011-11-18 12:31:08 UTC
Tentatively set for 5.2.1

Comment 4 Thomas Heute 2011-12-13 10:30:54 UTC
Release Notes Docs Status: Added: Not Yet Documented
Release Notes Text: Added: When serving content from a portlet, the encoding of the resource gets rewrote with the default encoding of the running JVM


Comment 5 Jared MORGAN 2011-12-13 21:31:43 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Known Issue
Release Notes Text: Removed: When serving content from a portlet, the encoding of the resource gets rewrote with the default encoding of the running JVM Added: When serving content from a portlet, resource encoding is being rewritten with the default encoding of the running JVM. To work around the issue, server the resource as a binary, or set the default system encoding to ISO-8859-1.


Comment 6 Matt Wringe 2012-02-07 15:48:42 UTC
Issue has now been fixed in EPP svn repository and will appear in the next version.

Please note that there are a couple of issues with the example application attached to this jira, so the example application may not work as expected.

Comment 7 Matt Wringe 2012-02-07 15:48:42 UTC
Release Notes Docs Status: Removed: Documented as Known Issue Added: Not Yet Documented
Release Notes Text: Removed: When serving content from a portlet, resource encoding is being rewritten with the default encoding of the running JVM. To work around the issue, server the resource as a binary, or set the default system encoding to ISO-8859-1. Added: Updated the portlet resource handling to take into consideration the encoding of the mime type when outputting byte array data.


Comment 8 Jared MORGAN 2012-03-27 04:07:38 UTC
    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:
It was discovered that when content was served from a portlet, the resource encoding was being rewritten with the default encoding of the running JVM. To work around the issue, users had to serve the resource as a binary, or set the system encoding to ISO-8859-1. The fix implements improved resource handling, which honors the mime type encoding when outputting byte array data.


Note You need to log in before you can comment on or make changes to this bug.