Details
-
Bug
-
Resolution: Fixed
-
Medium
-
5.4.1
Description
Problem Description
When there's some issue with the shared repository cache, Build admin will try to delete the cache repository as the first step. However when the XSRF protection is enabled, it will throw an exception.
java.lang.IllegalStateException: XSRF: Cannot delete caches at com.atlassian.bamboo.utils.XsrfUtils.fail(XsrfUtils.java:20) at com.atlassian.bamboo.utils.XsrfUtils.assertCanPerformMutativeAction(XsrfUtils.java:40) at com.atlassian.bamboo.ww2.actions.admin.RepositorySettingsAction.doDelete(RepositorySettingsAction.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ...
Steps to replicate
- Set up a shared repository in Bamboo through Bamboo Admin >> Shared Repository.
- Set up a plan with that shared repository, and run a checkout task.
- Make sure the XSRF Protection is enabled from Bamboo Admin >> Security Settings.
- Delete the repository cache from Bamboo Admin >> Repository Settings
Attachments
Issue Links
- was cloned as
-
BDEV-4493 Loading...