When we are trying to make api calls to bamboo we get the following response
curl -k 'https://bambooxxxxxxx/rest/api/latest/deploy/project/all' -u username:password
<title>Internal server error</title>
<meta name="decorator" content="install" />
<h1>Internal server error</h1>
<li><a href="/">Site homepage</a></li>
A system error has occurred - our apologies!
Please create a problem report on our <b>support system</b> at <a href="https://support.atlassian.com/contact/">https://support.atlassian.com</a> with the following information:
<li>a description of your problem and what you were doing at the time it occurred
<li>cut & paste the error and system information found below
<li>attach the <strong>atlassian-bamboo.log</strong> log file found in your application home.
We will respond as promptly as possible.<br/>Thank you!
<b>Build Date:</b> 04 Jun 2019
<li>Request URL: https://bambooxxxxxx/500.action</li>
<li>Context path: </li>
<li>Servlet path: /500.action</li>
<li>Path info: </li>
<li>Query string: </li>
java.lang.IllegalStateException: XSRF: A mutative operation was attempted on InternalMembership within a non-mutative HTTP request: https://bambooxxxxx/rest/api/latest/deploy/ : [null]->
->[[386695185, 328237456, GROUP_USER, GROUP, KeyLight_Access, keylight_access, , 2021-01-21 11:20:59.162, com.atlassian.crowd.model.directory.DirectoryImpl$HibernateProxy$xJR7flyF@4db106e7[lowerName=crowd repository,description=
This seems to be related to an XSRF bug that has by chance just been fixed and published in Bamboo 7.2.2 yesterday:
If you are unable to upgrade to Bamboo 7.2.2 right away, the issue lists two workarounds:
Use Personal Access Tokens to authenticate with the API instead:
Login as the user via the UI so that updates are performed. REST calls will now work until theres another change to the user or their group membership.
I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events