Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14317

Deleting Shared repository cache will throw an exception if XSRF protection is enabled

    XMLWordPrintable

Details

    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

      1. Set up a shared repository in Bamboo through Bamboo Admin >> Shared Repository.
      2. Set up a plan with that shared repository, and run a checkout task.
      3. Make sure the XSRF Protection is enabled from Bamboo Admin >> Security Settings.
      4. Delete the repository cache from Bamboo Admin >> Repository Settings

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rjmasikome RianA
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: