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

migrating NXRM2 to NXRM3 legacy content URLs issue

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.7.0, 3.37.3
    • Fix Version/s: None
    • Component/s: Migration
    • Environment:
      Docker sonatype/nexus3:3.37.3
      jetty for SSL

      Description

      We are upgrading from NXRM2 to NXRM3 

      It seems that some legacy URLS are not working for us

       

      OLD: http://localhost/service/local/repositories/distributions/content/gradle/gradle/6.3/gradle-6.3-bin.zip

      New: http://localhost/repository/distributions/gradle/gradle/6.3/gradle-6.3-bin.zip

      Enabled: org.sonatype.nexus.repository.httpbridge.internal.HttpBridgeModule.legacy=true

      ********
      * MARK *
      ********
      2022-02-18 10:50:52,994+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Servicing: GET /service/local/repositories/distributions/content/gradle/gradle/6.3/gradle-6.3-bin.zip (http://localhost/service/local/repositories/distributions/content/gradle/gradle/6.3/gradle-6.3-bin.zip)
      2022-02-18 10:50:52,994+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Parsed path: RepositoryPath{repositoryName='distributions', remainingPath='/content/gradle/gradle/6.3/gradle-6.3-bin.zip'}
      2022-02-18 10:50:52,994+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Looking for repository: distributions
      2022-02-18 10:50:52,995+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Repository: RepositoryImpl$$EnhancerByGuice$$646284708{type=hosted, format=maven2, name='distributions'}
      2022-02-18 10:50:52,995+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Dispatching to view facet: org.sonatype.nexus.repository.view.ConfigurableViewFacet$$EnhancerByGuice$$635494497@12798ec7
      2022-02-18 10:50:52,995+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.HttpResponseSenderSelector - Looking for HTTP response sender: maven2
      2022-02-18 10:50:52,996+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router - Request: Request{action='GET', path='/content/gradle/gradle/6.3/gradle-6.3-bin.zip', parameters=null, payload=HttpRequestPayloadAdapter{contentType='null', size=-1}, multipart=false}
      2022-02-18 10:50:52,996+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router - Request headers:
      2022-02-18 10:50:52,996+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Cookie: _ga=GA1.2.1826361391.1617782964; _otui=169171618.1617782964211.1632817067254.1642590903172.3.6.29456; __utmc=9428000; __utmz=9428000.1643281590.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=9428000.|1=Treatment=PE=1; __utma=9428000.1826361391.1617782964.1643360169.1644240394.5; NX-ANTI-CSRF-TOKEN=0.5936214220353371; _gid=GA1.2.1810087756.1645175594; NXSESSIONID=01cb46a5-d631-48d0-9cb3-5b65fcc07f71; _gat=1; _gat_adw=1; _gat_cdt=1
      2022-02-18 10:50:52,996+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
      2022-02-18 10:50:52,996+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Connection: keep-alive
      2022-02-18 10:50:52,997+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
      2022-02-18 10:50:52,997+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Sec-Fetch-Site: none
      2022-02-18 10:50:52,997+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Sec-Fetch-Dest: document
      2022-02-18 10:50:52,997+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Host: localhost
      2022-02-18 10:50:52,997+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Accept-Encoding: gzip, deflate, br
      2022-02-18 10:50:52,997+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Sec-Fetch-Mode: navigate
      2022-02-18 10:50:52,998+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   sec-ch-ua: "Chromium";v="94", "Google Chrome";v="94", ";Not A Brand";v="99"
      2022-02-18 10:50:52,998+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   sec-ch-ua-mobile: ?0
      2022-02-18 10:50:52,999+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Upgrade-Insecure-Requests: 1
      2022-02-18 10:50:52,999+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   sec-ch-ua-platform: "Windows"
      2022-02-18 10:50:52,999+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Sec-Fetch-User: ?1
      2022-02-18 10:50:52,999+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Accept-Language: en-US,en;q=0.9
      2022-02-18 10:50:53,000+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router - Request attributes:
      2022-02-18 10:50:53,000+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Key[type=org.sonatype.nexus.security.SecurityFilter, annotation=[none]].FILTERED=true
      2022-02-18 10:50:53,000+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   authcAntiCsrf.FILTERED=true
      2022-02-18 10:50:53,000+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   org.apache.shiro.web.servlet.ShiroHttpServletRequestREFERENCED_SESSION_ID_SOURCE=cookie
      2022-02-18 10:50:53,000+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   javax.servlet.request.key_size=256
      2022-02-18 10:50:53,000+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   nexus.user.principal=admin
      2022-02-18 10:50:53,001+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   nx-anonymous.FILTERED=true
      2022-02-18 10:50:53,001+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   nx-apikey-authc.FILTERED=true
      2022-02-18 10:50:53,001+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   javax.servlet.request.cipher_suite=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
      2022-02-18 10:50:53,001+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   javax.servlet.request.ssl_session_id=2c9aA33dE82b45735f8c233c93D4D18aE14c5855DaCe3a79D14c074eEa17026a
      2022-02-18 10:50:53,002+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   org.apache.shiro.subject.support.DefaultSubjectContext.SESSION_CREATION_ENABLED=false
      2022-02-18 10:50:53,002+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   nx-authc.FILTERED=true
      2022-02-18 10:50:53,002+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   org.apache.shiro.web.servlet.ShiroHttpServletRequest_REQUESTED_SESSION_ID_VALID=true
      2022-02-18 10:50:53,002+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   org.apache.shiro.web.servlet.ShiroHttpServletRequest_REQUESTED_SESSION_ID=01cb46a5-d631-48d0-9cb3-5b65fcc07f71
      2022-02-18 10:50:53,002+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   org.apache.shiro.web.servlet.ShiroHttpServletRequest_SESSION_ID_URL_REWRITING_ENABLED=false
      2022-02-18 10:50:53,002+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   javax.servlet.include.servlet_path=/service/local/repositories/distributions/content/gradle/gradle/6.3/gradle-6.3-bin.zip
      2022-02-18 10:50:53,002+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   nexus.user.id=admin
      2022-02-18 10:50:53,003+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   org.eclipse.jetty.servlet.request.ssl_session=Session(1645180332352|TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384)
      2022-02-18 10:50:53,003+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.handlers.BrowseUnsupportedHandler$MatcherImpl - Matching: GET /content/gradle/gradle/6.3/gradle-6.3-bin.zip
      2022-02-18 10:50:53,003+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.matchers.logic.AndMatcher - Matching: org.sonatype.nexus.repository.maven.internal.matcher.MavenIndexMatcher@58e68540 AND OrMatcher{matchers=[org.sonatype.nexus.repository.view.matchers.ActionMatcher@737610f, org.sonatype.nexus.repository.view.matchers.ActionMatcher@d8c3d9c]}
      2022-02-18 10:50:53,003+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Starting: Route{matcher=org.sonatype.nexus.repository.maven.internal.matcher.MavenPathMatcher@1a14696c, handlers=[org.sonatype.nexus.repository.view.handlers.TimingHandler@763433eb, org.sonatype.nexus.repository.maven.ContentDispositionHandler@4ab71b3b, org.sonatype.nexus.repository.security.SecurityHandler@26bbbf2c, org.sonatype.nexus.repository.routing.internal.RoutingRuleHandler@1fddfd9e, org.sonatype.nexus.repository.view.handlers.ExceptionHandler@48a12ee5, org.sonatype.nexus.repository.view.handlers.HandlerContributor@3abd8a09, org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler@418410ad, org.sonatype.nexus.repository.http.PartialFetchHandler@31c5240e, org.sonatype.nexus.repository.maven.internal.VersionPolicyHandler@7052f2d5, org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler@2669d314, org.sonatype.nexus.repository.storage.UnitOfWorkHandler@4709be0c, org.sonatype.nexus.repository.storage.LastDownloadedHandler$$EnhancerByGuice$$480053480@5ff417b7, org.sonatype.nexus.repository.maven.internal.hosted.HostedHandler@38d792c6]}
      2022-02-18 10:50:53,003+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.view.handlers.TimingHandler@763433eb
      2022-02-18 10:50:53,004+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: com.sonatype.analytics.internal.handler.AnalyticsMeteringHandler@50ce17bb
      2022-02-18 10:50:53,004+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.maven.ContentDispositionHandler@4ab71b3b
      2022-02-18 10:50:53,004+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.security.SecurityHandler@26bbbf2c
      2022-02-18 10:50:53,004+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.routing.internal.RoutingRuleHandler@1fddfd9e
      2022-02-18 10:50:53,004+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.view.handlers.ExceptionHandler@48a12ee5
      2022-02-18 10:50:53,005+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.view.handlers.HandlerContributor@3abd8a09
      2022-02-18 10:50:53,005+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: com.sonatype.nexus.clm.internal.orient.FirewallContributedHandler@5abd2a70
      2022-02-18 10:50:53,006+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.view.handlers.ConditionalRequestHandler@418410ad
      2022-02-18 10:50:53,007+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.http.PartialFetchHandler@31c5240e
      2022-02-18 10:50:53,007+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.maven.internal.VersionPolicyHandler@7052f2d5
      2022-02-18 10:50:53,007+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler@2669d314
      2022-02-18 10:50:53,008+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.storage.UnitOfWorkHandler@4709be0c
      2022-02-18 10:50:53,008+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.storage.LastDownloadedHandler$$EnhancerByGuice$$480053480@5ff417b7
      2022-02-18 10:50:53,008+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Context - Proceeding: org.sonatype.nexus.repository.maven.internal.hosted.HostedHandler@38d792c6
      2022-02-18 10:50:53,008+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.maven.internal.orient.MavenFacetImpl - GET distributions : content/gradle/gradle/6.3/gradle-6.3-bin.zip
      2022-02-18 10:50:53,009+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.ContentValidatorSelector - Looking for content validator for format: maven2
      2022-02-18 10:50:53,010+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.MimeRulesSourceSelector - Looking for MIME rule source for format: maven2
      2022-02-18 10:50:53,010+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: OPEN -> ACTIVE
      2022-02-18 10:50:53,010+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: ACTIVE
      2022-02-18 10:50:53,011+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: ACTIVE -> OPEN
      2022-02-18 10:50:53,012+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: OPEN
      2022-02-18 10:50:53,012+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioning: OPEN -> CLOSED
      2022-02-18 10:50:53,012+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.storage.StorageTxImpl - Transitioned: CLOSED
      2022-02-18 10:50:53,012+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.handlers.TimingHandler - Timing: 8.830 ms
      2022-02-18 10:50:53,013+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router - Response: Response{status=Status{successful=false, code=404, message='content/gradle/gradle/6.3/gradle-6.3-bin.zip'}, payload=null}
      2022-02-18 10:50:53,013+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router - Response headers:
      2022-02-18 10:50:53,013+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router -   Content-Disposition: inline
      2022-02-18 10:50:53,013+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.view.Router - No response attributes
      2022-02-18 10:50:53,013+0000 TRACE [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Describe flags: null
      2022-02-18 10:50:53,014+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Request: Request{action='GET', path='/content/gradle/gradle/6.3/gradle-6.3-bin.zip', parameters=null, payload=HttpRequestPayloadAdapter{contentType='null', size=-1}, multipart=false}
      2022-02-18 10:50:53,014+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.DefaultHttpResponseSender - Sending response: Response{status=Status{successful=false, code=404, message='content/gradle/gradle/6.3/gradle-6.3-bin.zip'}, payload=null}
      2022-02-18 10:50:53,014+0000 DEBUG [qtp1175408681-558]  admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Service completed
      2022-02-18 10:50:53,014+0000 TRACE [qtp1175408681-558]  *SYSTEM org.sonatype.nexus.repository.httpbridge.internal.ExhaustRequestFilter - status: 404, method: GET, agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36, match: false
      2022-02-18 10:50:53,014+0000 TRACE [qtp1175408681-558]  *SYSTEM org.sonatype.nexus.repository.httpbridge.internal.ExhaustRequestFilter - req: class com.google.inject.servlet.DynamicFilterPipeline$1, resp: class com.codahale.metrics.servlet.AbstractInstrumentedFilter$StatusExposingServletResponse 

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              counihanp Phil Counihan
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title