Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-9935

Mirror is not displayed in clone dialog if upstream < 5.2 and mirror >= 5.2

    XMLWordPrintable

    Details

      Description

      If the mirror is upgraded to 5.2, but the upstream is still < 5.2 (tested with 4.3.3), the mirror is not displayed in the Clone URL dialog on the upstream.

      On the mirror, the following exception is logged

      2017-07-13 16:24:36,221 ERROR [http-nio-7961-exec-2] upstream_c683013f-7d61-3be1-b973-d4cbf0367f47 @1CUXUXAx984x22x0 1x7cv2o 127.0.0.1,0:0:0:0:0:0:0:1 "GET /rest/mirroring/latest/upstreamServers/c683013f-7d61-3be1-b973-d4cbf0367f47/repos/1 HTTP/1.1" c.a.s.i.r.e.DefaultUnhandledExceptionMapperHelper Unhandled exception while processing REST request: "GET /rest/mirroring/latest/upstreamServers/c683013f-7d61-3be1-b973-d4cbf0367f47/repos/1 HTTP/1.1"
      com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
              at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203)
              at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
              at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
              at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
              at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4830)
              at com.atlassian.bitbucket.internal.mirroring.mirror.ssh.DefaultUpstreamSshSettingService.getSshSettings(DefaultUpstreamSshSettingService.java:52)
              at com.atlassian.bitbucket.internal.mirroring.mirror.DefaultMirroredRepositoryService.canProxySshPush(DefaultMirroredRepositoryService.java:149)
              at com.atlassian.bitbucket.internal.mirroring.mirror.DefaultMirroredRepositoryService.getPushUrls(DefaultMirroredRepositoryService.java:134)
              at com.atlassian.bitbucket.internal.mirroring.mirror.DefaultMirroredRepositoryService.getRepository(DefaultMirroredRepositoryService.java:98)
              at com.atlassian.bitbucket.internal.mirroring.mirror.rest.UpstreamServerResource.getMirroredRepository(UpstreamServerResource.java:85)
              at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:24)
      

        Attachments

          Activity

            People

            • Assignee:
              mheemskerk Michael Heemskerk
              Reporter:
              mheemskerk Michael Heemskerk
              Participants:
              Developed By:
              Michael Heemskerk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: