Return-Path: Delivered-To: apmail-felix-commits-archive@www.apache.org Received: (qmail 38555 invoked from network); 23 Sep 2008 16:37:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Sep 2008 16:37:40 -0000 Received: (qmail 81605 invoked by uid 500); 23 Sep 2008 16:37:38 -0000 Delivered-To: apmail-felix-commits-archive@felix.apache.org Received: (qmail 81529 invoked by uid 500); 23 Sep 2008 16:37:37 -0000 Mailing-List: contact commits-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list commits@felix.apache.org Received: (qmail 81520 invoked by uid 99); 23 Sep 2008 16:37:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 09:37:37 -0700 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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Sep 2008 16:36:46 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B0EEA23889A0; Tue, 23 Sep 2008 09:36:49 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r698228 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java Date: Tue, 23 Sep 2008 16:36:49 -0000 To: commits@felix.apache.org From: rickhall@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080923163649.B0EEA23889A0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rickhall Date: Tue Sep 23 09:36:49 2008 New Revision: 698228 URL: http://svn.apache.org/viewvc?rev=698228&view=rev Log: Applied patch to decode reference URLs. (FELIX-731) Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java?rev=698228&r1=698227&r2=698228&view=diff ============================================================================== --- felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java (original) +++ felix/trunk/framework/src/main/java/org/apache/felix/framework/cache/BundleArchive.java Tue Sep 23 09:36:49 2008 @@ -19,6 +19,7 @@ package org.apache.felix.framework.cache; import java.io.*; +import java.net.URLDecoder; import org.apache.felix.framework.Logger; import org.apache.felix.framework.util.ObjectInputStreamX; @@ -1040,6 +1041,9 @@ throw new IOException("Reference URLs can only be files: " + location); } + // Decode any URL escaped sequences. + location = URLDecoder.decode(location); + // Make sure the referenced file exists. File file = new File(location.substring(FILE_PROTOCOL.length())); if (!BundleCache.getSecureAction().fileExists(file))