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 2016/02/16 10:43:18 UTC

[jira] [Created] (KARAF-4337) Repository proxy is not able to parse HTTP URL

Jean-Baptiste Onofré created KARAF-4337:
-------------------------------------------

             Summary: Repository proxy is not able to parse HTTP URL
                 Key: KARAF-4337
                 URL: https://issues.apache.org/jira/browse/KARAF-4337
             Project: Karaf
          Issue Type: Bug
          Components: cave-repository
    Affects Versions: cave-4.0.0
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: cave-4.0.1


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

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

fails with:

{code}
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]
{code}

It looks like the parsing via the HttpUrlConnection is broken.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)