Edit modal for a cross-repository pull request shows permission error when user does not have access to source repository

XMLWordPrintable

    • 1
    • Severity 3 - Minor
    • 1

      Issue Summary

      The reviewer is unable to edit the PR created between the fork and the main repository.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a repository and make a change in the master branch.
      2. Create two users, user1 and user2, with Bitbucket User access.
      3. Have an admin or sysadmin user create a fork of the repository in the same project under a different name.
        The fork repo can be created in a personal account as well and the behavior remains same.
      4. Assign user1 as a repo admin in both the main repository and the fork.
      5. Assign user2 as a repo admin only in the main repository.
      6. From user1’s account, make a change in the forked repository, then open a pull request from the fork to the main repository and add user2 as a reviewer.
      7. Login with user2 account and try to edit the pull request, an error message saying "You are not permitted to access this resource" appears.

      Expected Results

      The PR should be editable by the reviewer as it have write access on the target repository and the error message shouldn't appear.

      Actual Results

      An error message saying "You are not permitted to access this resource" appears.

      Workaround

      Close the Error dialog and edit the PR.

            Assignee:
            Unassigned
            Reporter:
            Aman Shrivastava
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: