Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 72001 invoked from network); 1 Sep 2009 13:08:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 13:08:36 -0000 Received: (qmail 97199 invoked by uid 500); 1 Sep 2009 13:08:36 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 97171 invoked by uid 500); 1 Sep 2009 13:08:36 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Received: (qmail 97161 invoked by uid 500); 1 Sep 2009 13:08:36 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 97158 invoked by uid 99); 1 Sep 2009 13:08:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 13:08:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 13:08:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3F1D234C004 for ; Tue, 1 Sep 2009 06:08:12 -0700 (PDT) Message-ID: <250858886.1251810492610.JavaMail.jira@brutus> Date: Tue, 1 Sep 2009 06:08:12 -0700 (PDT) From: "Fabio Marinelli (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1974) Package scanning cannot be used for folders containing special characters In-Reply-To: <1382037613.1251797124208.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53951#action_53951 ] Fabio Marinelli commented on CAMEL-1974: ---------------------------------------- I found this interesting issue ( https://issues.apache.org/jira/browse/LAUNCHER-10 ) on another apache project. They had the same problem and it seems that the solution comes with: new URI(resource).getPath() instead of URLDecoder.decode(resource, "UTF-8") at least for file protocol. Bye > Package scanning cannot be used for folders containing special characters > ------------------------------------------------------------------------- > > Key: CAMEL-1974 > URL: https://issues.apache.org/activemq/browse/CAMEL-1974 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.0.0 > Environment: macbook pro, osx leopard > Reporter: Fabio Marinelli > Attachments: DefaultPackageScanClassResolverTest.diff, package+scan+test.jar > > > I found out this problem developing a test case with cargo on my macbook. Temporary directory on leopard is something like (/private/var/folders/is/ispMf0ylEtCIOP8skg0va++++TI/-Tmp-) and cargo deploys the embedded container there. > Problem happens when camel tries to find converters by using DefaultPackageScanClassResolver class; it converts the temporary path, using URLDecoder, in the invalid path "/private/var/folders/is/ispMf0ylEtCIOP8skg0va TI/-Tmp-" > You can reproduce this bug by patching the DefaultPackageScanClassResolverTest and adding the following resource file, that I'm going to attach to this issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.