Problems connecting from a plugin to a rest api, since the method doFilter

goog day, I have problems connecting from a plugin to a rest api, since the method doFilter. thanks.

2 answers

1 accepted

the solution is: change -->httpGetRequest.setHeader("Authorization", "Basic "+Base64.encodeBase64String("admin:admin".getBytes()));

for

httpGetRequest.setHeader("Authorization", "Basic "+new String(Base64.encodeBase64("admin:admin".getBytes())));

0 votes
Renjith Pillai Community Champion May 31, 2013

Can you give a bit more details? Are you calling an existing interface or your new interface?

Are you calling REST interface from within the Javascript or from server side Java code? Server side calling of REST is not a good idea.

Good day, Then from the server side as I can get the information of the issues?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,975 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot