<< Back to previous view

[GLASSFISH-20734] Encoding mappings defined in deployment descriptor file are ignored. Created: 31/Jul/13  Updated: 06/Aug/13  Resolved: 06/Aug/13

Status: Resolved
Project: glassfish
Component/s: web_container
Affects Version/s: 4.0_b89_RC5
Fix Version/s: 4.0_b90

Type: Bug Priority: Minor
Reporter: djiao Assignee: Shing Wai Chan
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Solaris


Tags:
Participants: djiao and Shing Wai Chan

 Description   

When an encoding mapping is defined in deployment descriptor,

<locale-encoding-mapping-list>
<locale-encoding-mapping>
<locale>ja</locale>
<encoding>euc-jp</encoding>
</locale-encoding-mapping>
<locale-encoding-mapping>
<locale>zh_CN</locale>
<encoding>gb18030</encoding>
</locale-encoding-mapping>
</locale-encoding-mapping-list>

call
response.setLocale(Locale.JAPAN);
fails to set encoding to euc-jp.



 Comments   
Comment by Shing Wai Chan [ 06/Aug/13 07:47 PM ]

fix in trunk
Sending deployment/dol/src/main/java/com/sun/enterprise/deployment/LocaleEncodingMappingDescriptor.java
Sending web/web-glue/src/main/java/org/glassfish/web/deployment/descriptor/WebBundleDescriptorImpl.java
Sending web/web-glue/src/main/java/org/glassfish/web/deployment/node/WebCommonNode.java
Transmitting file data ...
Committed revision 62449.

Comment by Shing Wai Chan [ 06/Aug/13 08:38 PM ]

fix in 4.0 branch
Sending appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/LocaleEncodingMappingDescriptor.java
Sending appserver/web/web-glue/src/main/java/org/glassfish/web/deployment/descriptor/WebBundleDescriptorImpl.java
Sending appserver/web/web-glue/src/main/java/org/glassfish/web/deployment/node/WebCommonNode.java
Transmitting file data ...
Committed revision 62451.

Generated at Sun Apr 20 14:35:58 UTC 2014 using JIRA 4.0.2#472.