Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-11792

Changing public flag in Repository Permissions does not reflect on mirrors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 6.4.0
    • 5.16.6, 6.0.6, 6.1.5, 6.2.2, 6.3.1
    • None

    Description

      Issue Summary

      When Public flag is enabled/disabled for a mirrored repository, it doesn't sync on corresponding mirrors.

      Steps to Reproduce

      1. Setup BbS Mirror and approve it on upstream.
      2. Create a repository in some project, let's say Project A, and set Public flag as Enabled in Repository Permissions.
      3. Go to Settings > Mirrors
      4. Add project A on the mirror.
      5. Wait until clone dialog in the repository shows mirror in drop-down.
      6. Go to Repository Permissions and change the public flag to disabled.
      7. Try cloning the repository using mirror URL as anonymous user.

      Expected Results

      Clone should succeed only if you enter valid credentials.

      Actual Results

      Clone succeeds without asking for credentials.

      Notes

      Above behaviour is observed until full sync job runs on the mirror which runs periodically evert 15 minutes by default(configurable using property plugin.mirroring.synchronization.interval)

      Workaround

      1. Wait for full sync to run
      2. Use REST service /upstreamServers/{upstreamId}/synchronization to trigger full sync manually.

      Attachments

        Activity

          People

            mgoyal2@atlassian.com Manish
            mgoyal2@atlassian.com Manish
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: