Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-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 7C71B7EFA for ; Sat, 30 Jul 2011 09:44:31 +0000 (UTC) Received: (qmail 18063 invoked by uid 500); 30 Jul 2011 09:44:22 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 18018 invoked by uid 500); 30 Jul 2011 09:44:19 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 17882 invoked by uid 99); 30 Jul 2011 09:41:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jul 2011 09:41:32 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jul 2011 09:41:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 99080958CA for ; Sat, 30 Jul 2011 09:41:09 +0000 (UTC) Date: Sat, 30 Jul 2011 09:41:09 +0000 (UTC) From: "Andreas Pieber (JIRA)" To: issues@karaf.apache.org Message-ID: <969906869.20754.1312018869623.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <731329171.11419.1311760509561.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (KARAF-778) karaf does not work properly with spaces in the working directory path 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/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073153#comment-13073153 ] Andreas Pieber commented on KARAF-778: -------------------------------------- While Christoph's usecase works on 2.2.3 (after my upgrades) karaf still does not build on windows if you build it in a "kar af" folder on windows. Can you confirm this Mike? @master: this surprises me. The bug is basically a problem of paxurl and it was on all paxurl versions. I've not upgrade paxurl/paxrunner on the master by now. Did we change anything in the url resolving process here on the master? Also we have to verify if it builds using a space in the name. While this issue may be fixed I'm not convinced that we've caught all space-path-problems. One general trick here: If you get a URL in form of a String new File(new URI(pathAsString).getPath) have to be used everywhere. Otherwise %20 and other special url characters results in problems in Karaf... > karaf does not work properly with spaces in the working directory path > ---------------------------------------------------------------------- > > Key: KARAF-778 > URL: https://issues.apache.org/jira/browse/KARAF-778 > Project: Karaf > Issue Type: Bug > Affects Versions: 2.2.2 > Environment: Windows XP (Virtualbox) with sun-java "1.6.0_24" and Ubuntu 11.04 with sun-java "1.6.0_26" > Reporter: Christoph Gritschenberger > Assignee: Andreas Pieber > Priority: Blocker > > * Create two directories: "nospace" and "with space" (and make sure the path does not contain any other spaces) > * download karaf-2.2.2 and extract a copy into each directory. > * executing nospace/karaf/bin/karaf works just fine > {code} > karaf@root> features:listurl > Loaded URI > true mvn:org.apache.karaf.assemblies.features/standard/2.2.2/xml/features > true mvn:org.apache.karaf.assemblies.features/enterprise/2.2.2/xml/features > {code} > * executing with space/karaf/bin/karaf does not work > {code} > karaf@root> features:listurl > Loaded URI > No repository URLs are set. > {code} > It seems that the featres.cfg is not read at all when the path contains a space. > Adding a URI manually also does not work: > {code} > karaf@root> features:addurl mvn:org.apache.karaf.assemblies.features/standard/2. > 2.2/xml/features > Could not add Feature Repository: > java.net.MalformedURLException: Illegal character in path at index 31: file:/home/christophg/test/with space/apache-karaf-2.2.2/system/ > {code} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira