-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
6.4.1
-
None
-
1
-
Severity 3 - Minor
-
0
-
Summary
Server status REST API loops continuously even though the session expire
Steps to Reproduce
- Log into Bamboo from browser.
- Remove Anonymous user permission from Global Permission
- Restart Bamboo server.
Expected Results
- /rest/api/latest/server will stop after receiving error
Actual Results
- /rest/api/latest/server receive 401 error and keep on looping for every 30 seconds
Notes
- Use Google Chrome Developer Tools Network tab to check the network traffic
- User may not notice the session timeout
- The problem will also happen when browser session timeout (without restarting Bamboo server)
- This problem will produce a huge amount of 401 errors in Tomcat access log - the security team will perceive this as an attack
Workaround
- Shutdown Bamboo
- Edit the file <bamboo-install>/atlassian-bamboo/scripts/serverstate.js to add "doPoll = false" to the following line:
error: function (request, textStatus, errorThrown) { updateStatus({state: BAMBOO.ADMIN.STATUS_ERROR}, textStatus + ": " + errorThrown); doPoll = false; }
- Restart Bamboo
- User may need to restart browser due to browser cache
- is related to
-
BAM-18326 Add Server Status REST endpoint available by anonymous user
- Closed