Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-531

Unable to download snapshots behind proxy with authentication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 1.0-beta-2
    • 1.0-beta-3
    • remote proxy
    • None
    • solaris 5.10, jdk1.6.0_02, proxy with basic authentication

    Description

      I am able to download artifacts from several remote repositories into the internal repository. But I cannot download any dependencies into the snapshots repository. I always get a http-'Server redirected too many times (20)'-error. I read that this error occurs if the proxy authentication properties are not set correctly in the http client. I am behind a proxy with basic authentication and an empty password. This configuration works fine for the internal repository, but not for the snapshot repository.

      Here are the logs:

      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:08,987 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Applying [cache-failures] policy with [ignored]
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:08,987 [SocketListener0-7] DEBUG org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures - OK to fetch, check-failures policy set to IGNORED.
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:08,987 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Applying [releases] policy with [disabled]
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:08,987 [SocketListener0-7] DEBUG org.apache.maven.archiva.policies.PreDownloadPolicy:releases - OK to update, release policy does not apply for snapshot versions.
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:08,987 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Applying [snapshots] policy with [daily]
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:08,987 [SocketListener0-7] DEBUG org.apache.maven.archiva.policies.PreDownloadPolicy:snapshots - OK to update snapshots, local file does not exist.
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:08,988 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Retrieving org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/mave
      n-artifact-3.0-SNAPSHOT.pom from Apache Snapshots Repository if updated
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,087 [SocketListener0-7] WARN org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Download failure:Error transferring file
      INFO | jvm 1 | 2007/10/02 11:50:09 | org.apache.maven.wagon.TransferFailedException: Error transferring file
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:104)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:94)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferSimpleFile(DefaultRepositoryProxyConnectors.java:566)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferFile(DefaultRepositoryProxyConnectors.java:434)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.fetchFromProxies(DefaultRepositoryProxyConnectors.java:143)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.web.repository.ProxiedDavServer.applyServerSideRelocation(ProxiedDavServer.java:286)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromProxies(ProxiedDavServer.java:243)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:147)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpServer.service(HttpServer.java:909)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      INFO | jvm 1 | 2007/10/02 11:50:09 | Caused by: java.net.ProtocolException: Server redirected too many times (20)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1251)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83)
      INFO | jvm 1 | 2007/10/02 11:50:09 | ... 29 more
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,089 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Applying [cache-failures] policy with [ignored]
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,089 [SocketListener0-7] DEBUG org.apache.maven.archiva.policies.PreDownloadPolicy:cache-failures - OK to fetch, check-failures policy set to IGNORED.
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,089 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Applying [releases] policy with [disabled]
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,089 [SocketListener0-7] DEBUG org.apache.maven.archiva.policies.PreDownloadPolicy:releases - OK to update, release policy does not apply for snapshot versions.
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,089 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Applying [snapshots] policy with [daily]
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,089 [SocketListener0-7] DEBUG org.apache.maven.archiva.policies.PreDownloadPolicy:snapshots - OK to update snapshots, local file does not exist.
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,089 [SocketListener0-7] DEBUG org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Retrieving org/apache/maven/artifact/maven-artifact/3.0-SNAPSHOT/mave
      n-artifact-3.0-SNAPSHOT.jar from Apache Snapshots Repository if updated
      INFO | jvm 1 | 2007/10/02 11:50:09 | 2007-10-02 11:50:09,174 [SocketListener0-7] WARN org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Download failure:Error transferring file
      INFO | jvm 1 | 2007/10/02 11:50:09 | org.apache.maven.wagon.TransferFailedException: Error transferring file
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:104)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:94)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferSimpleFile(DefaultRepositoryProxyConnectors.java:566)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.transferFile(DefaultRepositoryProxyConnectors.java:434)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.fetchFromProxies(DefaultRepositoryProxyConnectors.java:143)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromProxies(ProxiedDavServer.java:245)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:147)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpServer.service(HttpServer.java:909)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      INFO | jvm 1 | 2007/10/02 11:50:09 | Caused by: java.net.ProtocolException: Server redirected too many times (20)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1251)
      INFO | jvm 1 | 2007/10/02 11:50:09 | at org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83)
      INFO | jvm 1 | 2007/10/02 11:50:09 | ... 28 more

      Attachments

        Activity

          People

            joakime Joakim Erdfelt
            mathiasarens Mathias Arens
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: