PullRequestService.addReviewer does not compatible with SecurityService

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Highest
    • 4.11.0
    • Affects Version/s: None
    • Component/s: None
    • Severity 3 - Minor

      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.

            Assignee:
            Kristy
            Reporter:
            Alexey Efimov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: