Hi,

With the help of Jayanga and Rasika I was able to find the root cause of
the issue. I compared the web.xml (found at
IS_HOME/repository/conf/tomcat/carbon/) files of IS packs build on top of
Kernel 4.4.5 and 4.4.7. I noticed that the filter mapping for the "
*CharsetFilter*" was missing in IS packs built on top of 4.4.7 kernel. The
reason for this being that the particular entry has been missed out while
adding other product specific changes in the distribution.xml of product-is.

    <filter-mapping>
        <filter-name>CharsetFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

After adding the above entry manually to the web.xml file encoding worked
fine as expected. Created a JIRA[1] to track this and fix properly.


Thanks everyone for the help :)


[1] https://wso2.org/jira/browse/IDENTITY-4881

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 <https://twitter.com/farazath619>
<http://wso2.com/signature>



On Fri, Jul 29, 2016 at 6:56 PM, Farasath Ahamed <[email protected]> wrote:

> Hi Lakshman,
>
> I tried the same by writing two simple JSPs it worked as expected. I tried
> setting the encoding as you suggested that didn't work either. The problem
> is only seen with JSPs that are exposed from a UI bundle.
>
>
> Thanks,
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 <https://twitter.com/farazath619>
> <http://wso2.com/signature>
>
>
>
> On Fri, Jul 29, 2016 at 3:07 PM, Lakshman Udayakantha <[email protected]>
> wrote:
>
>> Hi Farasath,
>>
>> I sent a request from a UTF-8 encoded form to a JSP page both from 4.4.5
>> kernel and 4.4.7 kernel and I got UTF-8 encoded text in JSP end without any
>> issue in both cases. BTW I have set following property in JSP before
>> reading request parameters
>>
>> request.setCharacterEncoding("UTF-8");
>>
>> Could you check by setting that too?
>>
>> Thanks
>>
>> On Tue, Jul 26, 2016 at 11:58 AM, Farasath Ahamed <[email protected]>
>> wrote:
>>
>>> + Kishanthan, Johann
>>>
>>> Farasath Ahamed
>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>> <http://wso2.com/signature>
>>>
>>>
>>>
>>> On Tue, Jul 26, 2016 at 11:22 AM, Farasath Ahamed <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am sending some UTF-8 encoded texts from a form to a JSP(ajax
>>>> processor). In the JSP I read the request parameters using,
>>>>
>>>> String emailSubject = request.getParameter("emailSubject");
>>>> String emailBody = request.getParameter("emailBody");
>>>> String emailFooter = request.getParameter("emailFooter");
>>>>
>>>> This scenario works fine with IS 5.3.0-M1 which is based on 4.4.5
>>>> kernel. But when I run the same code without any changes on IS 5.3.0-M3
>>>> which is based on 4.4.7 encoding doesn't seem to work.
>>>>
>>>> Appreciate your help to find the root cause.
>>>>
>>>>
>>>> Thanks,
>>>> Farasath Ahamed
>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>> Mobile: +94777603866
>>>> Blog: blog.farazath.com
>>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0717429601*
>>
>>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to