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

Pull Requests show unseen commit as approved if push happens while review is in progress and PR is not refreshed

XMLWordPrintable

      Issue Summary

      An approval for a PR will show as being related to an unseen commit if that commit is pushed while the PR review is in progress and the PR is not reloaded by the reviewer when the notification is shown that the PR has been updated.

      If automatic merging is enabled this can lead to unreviewed commits being merged to other branches and via CI/CD possibly being deployed to production, causing security concerns.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Have an open PR
      2. Start reviewing the PR
      3. Push another commit to the source branch of the PR
      4. Wait until a notification appears on screen that the PR has been updated, but don't refresh or reload the PR
      5. Finish the review and approve it

      Expected Results

      The approval shows it is for the commit that was current when the review was started

      Actual Results

      The approval shows it is for the commit that was pushed while the review was in progress, and which was never actually reviewed

      Workaround

      Tell PR reviewers to reload the PR if a notification is displayed saying the PR was updated while the review is in progress

              db057f2526d4 Charanjith A C
              cglockner Christian Glockner (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: