Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5694

strip url to ensure it's a valid one which could download

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.1.6, 4.2.1
    • karaf
    • None

    Description

      For example, if we configuration

                                              <startupBundles>
                                                      <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version};start-level=80</bundle>
                                              </startupBundles>
      

      in karaf-maven-plugin which have start-level for a bundle, then we have error like

      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) ~[?:?]
      

      we need strip unnecessary part in the url before open the stream

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: