You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christoph Gritschenberger (JIRA)" <ji...@apache.org> on 2011/07/27 11:55:09 UTC

[jira] [Created] (KARAF-778) karaf does not work properly with spaces in the working directory path

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
            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

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

* executing with space/karaf/bin/karaf does not work

karaf@root> features:listurl
 Loaded   URI
No repository URLs are set.

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:
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/

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072400#comment-13072400 ] 

Andreas Pieber commented on KARAF-778:
--------------------------------------

Committing to https://svn.apache.org/repos/asf/karaf/branches/karaf-2.2.x ...
        M       admin/core/src/test/java/org/apache/karaf/jpm/ProcessTest.java
        M       assemblies/apache-karaf/src/main/distribution/unix-shell/bin/karaf
        M       assemblies/apache-karaf/src/main/distribution/unix-shell/bin/start
        M       assemblies/apache-karaf/src/main/distribution/unix-shell/bin/stop
        M       deployer/kar/src/test/java/org/apache/karaf/deployer/kar/KarArtifactInstallerTest.java
        M       main/src/test/java/org/apache/karaf/main/MainStartTest.java
Committed r1151893

OK, lets see what have to be done for the master and check if windows works

> 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

        

[jira] [Commented] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Michael Van Geertruy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072668#comment-13072668 ] 

Michael Van Geertruy commented on KARAF-778:
--------------------------------------------

Also confirmed that this is NOT an issue on the trunk (phew!).  The OS this was tested with was: Windows 7 Home Premium 64 bit.  As long as this works with XP Pro and Vista, I suggest we mark this ticket as closed.

> 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

        

[jira] [Commented] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13071708#comment-13071708 ] 

Andreas Pieber commented on KARAF-778:
--------------------------------------

ok, the base problem is located in pax-url. I've already located and fixed the problem. I'll create the issue at pax-url, release it and upgrade Karaf. Integration tests still fail in the folder. I'm looking into it

> 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

        

[jira] [Commented] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Michael Van Geertruy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072664#comment-13072664 ] 

Michael Van Geertruy commented on KARAF-778:
--------------------------------------------

Confirmed the bug in the 2.2.2 release. Also, confirmed the Pieber's fix in 2.2.3.

> 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

        

[jira] [Assigned] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Andreas Pieber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Pieber reassigned KARAF-778:
------------------------------------

    Assignee: Andreas Pieber

> 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

        

[jira] [Closed] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Andreas Pieber (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Pieber closed KARAF-778.
--------------------------------

    Resolution: Not A Problem

At least no longer a problem; this had been fixed somewhere with an pax-url upgrade
                
> 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.
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

        

[jira] [Updated] (KARAF-778) karaf does not work properly with spaces in the working directory path

Posted by "Christoph Gritschenberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christoph Gritschenberger updated KARAF-778:
--------------------------------------------

    Description: 
* 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}

  was:
* 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

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

* executing with space/karaf/bin/karaf does not work

karaf@root> features:listurl
 Loaded   URI
No repository URLs are set.

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:
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/


> 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
>            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