Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Fisheye REST api DELETE methods require a body but AppLinks don't allow

Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 30, 2016

How do I delete group permissions in Fisheye if AppLink won't let me add a body to a DELETE request?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Piotr Swiecicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2016

What API do you use, com.atlassian.applinks.api.ApplicationLinkRequestFactory#createRequest to create a request over application link?  If so, you should be able to call https://docs.atlassian.com/sal-api/2.7.0/sal-api/apidocs/com/atlassian/sal/api/net/Request.html#setRequestBody(java.lang.String) on instantiated request object to specify the body.

Hope that helps

Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2016

The linked javadoc says it's only valid for POST and PUT.  It's not lying either. If you try to use it for DELETE it throws an exception. 

Piotr Swiecicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 31, 2016

Apologies, I missed that bit, I wasn't aware of this limitation of Application Links.  I've raised a bug https://jira.atlassian.com/browse/FE-6654 to get this improved, I'm afraid I can't think of any simple workaround for now, other than implementing own FishEye plugin that would expose the REST endpoints you need and that would consume Java API internally.

Hope that helps,

Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2016

In the mean time what I did was PUT allowLoggedIn:true and then PUT allowLoggedIn:false.  This resets all permitted groups and then I performed a POST for each group I wanted to permit.

It's a very chatty solution.  It'd be nice to be able to send a list to set them all at once.

Piotr Swiecicki
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 31, 2016

thanks, I've added your solution as workaround to FE-6654 issue.

TAGS
AUG Leaders

Atlassian Community Events