[
https://issues.apache.org/jira/browse/CONNECTORS-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ahmet Arslan updated CONNECTORS-932:
------------------------------------
Attachment: CONNECTORS-932.patch
nukes all java.net.URLDecoder and java.net.URLEncoder from source tree.
> Avoid UnsupportedEncodingException handling
> -------------------------------------------
>
> Key: CONNECTORS-932
> URL: https://issues.apache.org/jira/browse/CONNECTORS-932
> Project: ManifoldCF
> Issue Type: Improvement
> Affects Versions: ManifoldCF 1.6
> Reporter: Ahmet Arslan
> Fix For: ManifoldCF 1.7
>
> Attachments: CONNECTORS-932.patch
>
>
> ManifoldCF extensively uses following two methods in several places.
> * {{java.net.URLDecoder.decode(String s, "UTF-8")}}
> * {{java.net.URLDecoder.decode(String s, "UTF-8")}}
> They throws checked exception although every implementation of the Java
> platform is required to support UTF-8. try catch blocks looks cumbersome with
> this ShouldNeverHappenException.
> Lets deals with {{UnsupportedEncodingException}} handling madness caused by
> by introducing two new utility classes :
> * org.apache.manifoldcf.core.util.URLDecoder
> * org.apache.manifoldcf.core.util.URLEncoder
--
This message was sent by Atlassian JIRA
(v6.2#6252)