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

PullRequestService.addReviewer does not compatible with SecurityService

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Highest
    • 4.11.0
    • None
    • None

    Description

      It ignores context with grants to REPO_WRITE and check real users permissions.
      Our plugin want to add reviwers to pullrequest.

      securityService.withPermission(Permission.REPO_WRITE).call(() -> pullRequestService.addReviewer(...)) always throw com.atlassian.bitbucket.AuthorisationException: You do not have permission to update reviewers.

      Attachments

        Issue Links

          Activity

            People

              khughes@atlassian.com Kristy
              3652ed9ede2e Alexey Efimov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: