Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-8059

Nexus p2 proxy unable to handle http redirects to https urls.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.11.1
    • Fix Version/s: None
    • Component/s: P2, Proxy Repository
    • Labels:
      None

      Description

      We are trying to create a p2 proxy repository to the Sonatype CLM Eclipse update site: http://download.sonatype.com/clm/eclipse/releases/

      That url redirects to https://sonatype-download.global.ssl.fastly.net/clm/eclipse/releases/

      If we enter the https url, then there is an SSL tab in the configuration that allows associating the URL with the a truststore and the p2 proxy appears to resolve the remote artifacts. However, if we change the URL back to the original http url, Nexus once again fails to resolve remote artifacts.

      The following is the error message in the log:
      jvm 1 | 2015-01-29 12:58:46 WARN [qtp30775687-3158] anonymous org.sonatype.nexus.plugins.p2.repository.proxy.P2ProxyRepositoryImpl - Could not retrieve list of repository mirrors (Item not found for request "ResourceStoreRequest{requestPath='https://sonatype-download
      .global.ssl.fastly.net/clm/eclipse/releases/artifacts.xml', requestContext=RequestContext

      {this=org.sonatype.nexus.proxy.RequestContext@127009, parent=null}

      , pathStack=[], processedRepositories=[], appliedMappings={}}" in repository ""Eclipse Sonatype CLM Update Site" [id
      =eclipse-sonatype-clm]"! Reason: Cannot write proxy artifact repository. Reason: No repository found at https://sonatype-download.global.ssl.fastly.net/clm/eclipse/releases/.). All downloads will come from repository canonical URL.

      The workaround is to enter the redirected url for the remote repository.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            robsykes24 Robert Sykes
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title