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 0D5839669 for ; Tue, 12 Jun 2012 08:09:46 +0000 (UTC) Received: (qmail 3667 invoked by uid 500); 12 Jun 2012 08:09:45 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 3525 invoked by uid 500); 12 Jun 2012 08:09:45 -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 3363 invoked by uid 99); 12 Jun 2012 08:09:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 08:09:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 96D78142864 for ; Tue, 12 Jun 2012 08:09:43 +0000 (UTC) Date: Tue, 12 Jun 2012 08:09:43 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: <683666410.6403.1339488583621.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1988524058.2581.1339414783176.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (CAMEL-5357) URI normalization - Should detect already percent encoded values 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-5357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293432#comment-13293432 ] Claus Ibsen commented on CAMEL-5357: ------------------------------------ Now we detect the % sign and only encodes if it needs to be, eg not already encoded, eg if you have %20, %25 etc. Then thats already encoded. There is some good details about url encode from wikipedia http://en.wikipedia.org/wiki/Url_encode > URI normalization - Should detect already percent encoded values > ---------------------------------------------------------------- > > Key: CAMEL-5357 > URL: https://issues.apache.org/jira/browse/CAMEL-5357 > Project: Camel > Issue Type: Bug > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > > If an uri has a percent encoded value, eg using %20, %25 etc, then the normalization logic in Camel should detect this and keep the value as is. > Currently it would end up double encoding %25, that becomes %2525, and so forth. > Its the code in UnsafeUriCharactersEncoder that has the bug -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira