添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
爱看书的签字笔  ·  常用 Django QuerySet ...·  2 月前    · 
咆哮的冰棍  ·  第796章 百年谋划·  2 月前    · 
才高八斗的剪刀  ·  hanhan博客 - Unity3D ...·  4 月前    · 

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms .

Support for Server* products ended on February 15th 2024 . If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When making a call to the Bamboo REST API , for example:

ERROR:- 
java.lang.IllegalArgumentException: XSRF Token Validation failed (XSRF_FAILURE_NO_TOKEN_IN_COOKIE).
at com.atlassian.bamboo.ww2.interceptors.BambooXsrfTokenInterceptor.doIntercept(BambooXsrfTokenInterceptor.java:66)
at com.atlassian.bamboo.ww2.interceptors.AbstractBambooInterceptor.intercept(AbstractBambooInterceptor.java:34)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
at com.atlassian.xwork.interceptors.AroundInterceptor.intercept(AroundInterceptor.java:25)

Cause

This specific error, XSRF_FAILURE_NO_TOKEN_IN_COOKIE , is caused by the cookie sent to Bamboo missing the atl.xsrf.token.

Workaround

To work around this issue, please add the header X-Atlassian-Token: no-check to your API call. For example: