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

Repository proxy is not able to parse HTTP URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • cave-4.0.0
    • cave-4.1.0
    • cave
    • None

    Description

      Cave is not able to proxy HTTP URL. For instance:

      cave:repository-proxy test http://dl.bintray.com/maggu2810/maven/
      

      fails with:

      2016-02-16 10:38:23,291 | ERROR | nsole user karaf | ShellUtil                        | 44 - org.apache.karaf.shell.core - 4.0.4 | Exception caught while executing command
      java.io.FileNotFoundException: http://dl.bintray.com/maggu2810/maven/:com/
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835)[:1.8.0_45]
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)[:1.8.0_45]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.proxyHttp(CaveRepositoryImpl.java:336)[75:org.apache.karaf.cave.server.storage:4.0.0]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.proxyHttp(CaveRepositoryImpl.java:355)[75:org.apache.karaf.cave.server.storage:4.0.0]
              at org.apache.karaf.cave.server.storage.CaveRepositoryImpl.proxy(CaveRepositoryImpl.java:249)[75:org.apache.karaf.cave.server.storage:4.0.0]
              at org.apache.karaf.cave.server.command.RepositoryProxyCommand.doExecute(RepositoryProxyCommand.java:55)[70:org.apache.karaf.cave.server.command:4.0.0]
              at org.apache.karaf.cave.server.command.CaveRepositoryCommandSupport.execute(CaveRepositoryCommandSupport.java:37)[70:org.apache.karaf.cave.server.command:4.0.0]
              at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[44:org.apache.karaf.shell.core:4.0.4]
              at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:270)[44:org.apache.karaf.shell.core:4.0.4]
              at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
      

      It looks like the parsing via the HttpUrlConnection is broken.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            jbonofre Jean-Baptiste Onofré
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: