[ 
https://issues.apache.org/jira/browse/KARAF-5694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453457#comment-16453457
 ] 

ASF subversion and git services commented on KARAF-5694:
--------------------------------------------------------

Commit 2711223555f16ebfffcabd941175bb1212841645 in karaf's branch 
refs/heads/karaf-4.1.x from [~ffang]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=2711223 ]

[KARAF-5694]don't strip out protocol header

(cherry picked from commit 9fb700697e494b8310cff575f2a7b3ead3e21751)


> strip url to ensure it's a valid one which could download
> ---------------------------------------------------------
>
>                 Key: KARAF-5694
>                 URL: https://issues.apache.org/jira/browse/KARAF-5694
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.2.0
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>            Priority: Major
>             Fix For: 4.1.6, 4.2.1
>
>
> For example, if we configuration
> {code}
>                                         <startupBundles>
>                                                 
> <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version};start-level=80</bundle>
>                                         </startupBundles>
> {code}
> in karaf-maven-plugin which have start-level for a bundle, then we have error 
> like
> {code}
> Caused by: java.io.FileNotFoundException: 
> ....../1.0-SNAPSHOT/camel-websocket-1.0-SNAPSHOT.jar;start-level=80 (No such 
> file or directory)
>               at java.io.FileInputStream.open0(Native Method) ~[?:?]
>               at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?]
>               at java.io.FileInputStream.<init>(FileInputStream.java:138) 
> ~[?:?]
>               at java.io.FileInputStream.<init>(FileInputStream.java:93) 
> ~[?:?]
>               at 
> sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
>  ~[?:?]
>               at 
> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
>  ~[?:?]
>               at java.net.URL.openStream(URL.java:1045) ~[?:?]
>               at 
> org.apache.karaf.features.internal.download.impl.SimpleDownloadTask.download(SimpleDownloadTask.java:76)
>  ~[?:?]
>               at 
> org.apache.karaf.features.internal.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:60)
>  ~[?:?]
> {code}
> we need strip unnecessary part in the url before open the stream



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to