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

Felix Meschberger resolved SLING-1256.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: Engine 2.1.0
         Assignee: Felix Meschberger

Thanks for reporting the issue and providing a patch. I have applied an 
extended version in Rev.894611 which fixes another occurrence of character set 
comparision.

It is in fact correct to ignore case when comparing character set names, since 
they are defined to not be case-sensitive.

> Util.fixEncoding(ParameterMap) should ignore case when comparing encodings
> --------------------------------------------------------------------------
>
>                 Key: SLING-1256
>                 URL: https://issues.apache.org/jira/browse/SLING-1256
>             Project: Sling
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: Engine 2.0.6
>            Reporter: Raphael Wegmueller
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: Engine 2.1.0
>
>         Attachments: Util.patch
>
>
> when posting content with parameter _charset_ set to "utf-8", but the 
> Content-Type header is set to "application/x-www-form-urlencoded; 
> charset=UTF-8", Util.fixEncoding(ParameterMap) will reencode the content, 
> which breaks most special characters.
> since there seems to be no accord on whether encodings should be submitted 
> upper or lower case, sling should simply ignore the case when comparing them.

-- 
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