You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2022/01/06 17:58:00 UTC

[jira] [Resolved] (KARAF-7317) Support spaces in boot features path

     [ https://issues.apache.org/jira/browse/KARAF-7317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-7317.
-----------------------------------------
    Fix Version/s: 4.4.0
                   4.3.6
       Resolution: Fixed

> Support spaces in boot features path
> ------------------------------------
>
>                 Key: KARAF-7317
>                 URL: https://issues.apache.org/jira/browse/KARAF-7317
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.5
>            Reporter: Donnie McMahan
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 4.4.0, 4.3.6
>
>
> `URI.create(String)` throws a `URISyntaxException` if any of the resolved URIs from `featuresRepositories` contains a space.
> This is common if customizing the boot features via the `karaf-maven-plugin`, then running the assembly from within a path containing spaces.
> For example:
> {{```xml}}
> {{<plugin>}}
> {{    <groupId>org.apache.karaf.tooling</groupId>}}
> {{    <artifactId>karaf-maven-plugin</artifactId>}}
> {{    <version>${karaf.version}</version>}}
> {{    <configuration>}}
> {{        <bootFeatures>}}
> {{            <feature>standard</feature>}}
> {{            <feature>my-feature</feature>}}
> {{        </bootFeatures>}}
> {{        ...}}
> {{    </configuration>}}
> {{</plugin>}}
> {{```}}
> will result in a new feature in `etc` as well as an entry in `etc/org.apache.karaf.features.cfg`:
> {{featuresRepositories = file:${karaf.etc}/2b260482-45bc-427c-af65-8909c1f2f7a3.xml}}
> However, if `karaf.etc` contains a space at runtime, Karaf fails to start because the URI cannot be parsed.
> I have proposed a solution with [this PR|https://github.com/apache/karaf/pull/1477].



--
This message was sent by Atlassian Jira
(v8.20.1#820001)