Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1086A10C78 for ; Fri, 11 Oct 2013 11:46:12 +0000 (UTC) Received: (qmail 98666 invoked by uid 500); 11 Oct 2013 11:46:10 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 98257 invoked by uid 500); 11 Oct 2013 11:46:08 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 98199 invoked by uid 99); 11 Oct 2013 11:46:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2013 11:46:05 +0000 Date: Fri, 11 Oct 2013 11:46:05 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-6853) UnsafeUriCharactersEncoder is missing hex digits MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-6853. -------------------------------- Resolution: Fixed Thanks for reporting and the patch. > UnsafeUriCharactersEncoder is missing hex digits > ------------------------------------------------ > > Key: CAMEL-6853 > URL: https://issues.apache.org/jira/browse/CAMEL-6853 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.12.1 > Reporter: Thomas Konstantinides > Assignee: Claus Ibsen > Fix For: 2.11.3, 2.12.2, 2.13.0 > > Attachments: UnsafeUriCharactersEncoder.patch > > > The class org.apache.camel.util.UnsafeUriCharactersEncoder in camel-core has a char[] HEX_DIGITS which includes hex digits that can be used in encoded urls following the % sign. However the char[] only contains the uppercase hexadecimal digits 'A' through 'F' which (following RFC 3986, chapter 2.1) are equivalent to the lowercase digits 'a' through 'f' in percent-encoding used in URIs. > So the char[] should also contain the lowercase digits 'a' through 'f', because otherwise the class does not work correctly in cases where URLs with already encoded characters having lowercase hex digits are encoded (e.g. URL with %3c). For these URLs the % sign is encoded once again (making it %253c in the example). > The provided patch adds the lowercase hex digits to the HEX_DIGITS char[]. > Regards, > Thomas -- This message was sent by Atlassian JIRA (v6.1#6144)