[ 
https://issues.apache.org/jira/browse/TRINIDAD-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias Weßendorf resolved TRINIDAD-1434.
------------------------------------------

       Resolution: Fixed
    Fix Version/s:  1.2.12-core

> avoid UploadRequestWrapper setCharacterEncoding WARNING when current encoding 
> is same as the "new"
> --------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1434
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1434
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions:  1.2.11-core
>            Reporter: Matthias Weßendorf
>            Assignee: Matthias Weßendorf
>            Priority: Minor
>             Fix For:  1.2.12-core
>
>
> In upload case we use a wrapper which "setCharacterEncoding()" throws a 
> warning when the request param map was already request before.
> Mar 24, 2009 2:29:18 AM 
> org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper 
> setCharacterEncoding
> WARNING: Unable to set request character encoding to UTF-8, because request 
> parameters have already been read.
> caller stack:
> -> 
> org.apache.myfaces.trinidadinternal.config.upload.UploadRequestWrapper.setCharacterEncoding(UploadRequestWrapper.java:89)
> -> 
> org.apache.myfaces.trinidadinternal.context.external.ServletExternalContext._initHttpServletRequest(ServletExternalContext.java:665)
> -> 
> org.apache.myfaces.trinidadinternal.context.external.ServletExternalContext.setRequest(ServletExternalContext.java:514)
> -> 
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:244)
> -> 
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
> -> 
> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
> The behavior is correct, since it is (according to the servlet spec) illegal 
> to set the character encoding after parameters have been retrieved.
> Even this is a pretty annoying restriction.
> However in almost all case the encoding has already been set to the desired 
> one and when the current encoding is equal to the new one,
> we could suppress the WARNING

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to