Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 7.1
-
Component/s: Branch & PR
-
Labels:
Description
Use case
Scanner is failing to analyse a pull request based on a pull request with error "Branch does not exist on server".
What
Analyzing a PR incorrectly requires 'Browse' permission on the project whereas 'Execute Analysis' only should be required.
Indeed, PR analysis calls the web service api/project_pull_requests/list which requires the 'Browse' permission.
Note: when analyzing a long-lived branch, this WS is also called but the analysis doesn't fail.