Hello,
I administer some projects on the SonarQube EE server. I don’t have the System Administer permission. I also don’t have the Execute Analysis permission because I shouldn’t push any analysis to the server. When developers hit some problems I try to support them. Usually, the first step is to check the scanner context (Project Settings → Background Tasks → Show Scanner Context
). Unfortunately, the created popup is empty. The browser’s console shows 403 error code:
GET https://<server.url>/api/ce/task?id=AXvQkfIPx6HAqP697_qB&additionalFields=scannerContext 403 (request.js:84)
t.submit @ request.js:84
O @ request.js:151
n.getJSON @ request.js:156
c @ ce.ts:52
loadScannerContext @ ScannerContext.tsx:49
componentDidMount @ ScannerContext.tsx:41
il @ react-dom.production.min.js:212
du @ react-dom.production.min.js:255
t.unstable_runWithPriority @ scheduler.production.min.js:19
Ho @ react-dom.production.min.js:122
pu @ react-dom.production.min.js:248
Jl @ react-dom.production.min.js:239
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:19
Ho @ react-dom.production.min.js:122
Ko @ react-dom.production.min.js:123
Vo @ react-dom.production.min.js:122
ne @ react-dom.production.min.js:287
Yt @ react-dom.production.min.js:68
Uncaught (in promise) Response {type: 'basic', url: 'https://<server.url>/api/ce/task?id=AXvQkfIPx6HAqP697_qB&additionalFields=scannerContext', redirected: false, status: 403, ok: false, …} (background_tasks:1)
Promise.then (async)
loadScannerContext @ ScannerContext.tsx:49
componentDidMount @ ScannerContext.tsx:41
il @ react-dom.production.min.js:212
du @ react-dom.production.min.js:255
t.unstable_runWithPriority @ scheduler.production.min.js:19
Ho @ react-dom.production.min.js:122
pu @ react-dom.production.min.js:248
Jl @ react-dom.production.min.js:239
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:19
Ho @ react-dom.production.min.js:122
Ko @ react-dom.production.min.js:123
Vo @ react-dom.production.min.js:122
ne @ react-dom.production.min.js:287
Yt @ react-dom.production.min.js:68
When I grant my user the Execute Analysis permission the popup is filled with data. For me it sounds like a bug because the permission suggests that it is needed for write
operations. The same like I’m able to see issues and security hotspots without having the Administer Issues and Administer Security Hotspots permissions.
SonarQube Enterprise Edition 8.9.1 (build 44547)
Cheers