Content-Type Order Change In Weblogic 9 And 10.3.5 (Doc ID 1532357.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.5 and later
Information in this document applies to any platform.

Symptoms

On WLS 10.3.1 and above version, Web Container sending the response using javax.mail.internet.MimeMultipart the order of Content-Type header is changed for boundary and  charset=UTF-8 .

weblogic 10 - Content-Type: multipart/form-data; boundary=--------ieoau._._+2_8_GoodLuck8.3-ds0d0J0S0Kl234324jfLdsjfdAuaoei-----; charset=UTF-8
weblogic 9 - Content-Type: multipart/form-data; charset=UTF-8; boundary=--------ieoau._._+2_8_GoodLuck8.3-ds0d0J0S0Kl234324jfLdsjfdAuaoei-----

Customer code adding content types:

At this point we have ParameterList and has one entery with boundary So even though we are adding it after charset it is not adding the boundary.

Changes

 Reason working in wls 9.2.4 and not working wls 10.3.5
=====================================================
In 9.2.4 ParameterList object is of the type Hashtable()(C:\Oracle\Middleware\wls923\weblogic92\server\lib\api\javax\mail\internet\ParameterList)
In 10.3.5 ParameterList object is of the type LinkedHashMap()(C:\Oracle\Middleware\wls1035\modules\javax.mail_1.1.0.0_1-4-1\javax\mail\internet\ParameterList)

 

Changed to list object type from Hashtable() to LinkedHashMap();
 

 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms