Unable to find and link JIRA ticket
Asked by Azraai Baharin:

1. When adding JIRA macro, and trying to search for ticket, it returns "Received the following HTTP error code from the server: 200"

![image.png](/t5/image/serverpage/image-id/108006i34FF86F9105D7F72/image-size/large?v=v2&px=999 "image.png")![image.png](/t5/image/serverpage/image-id/108007i8281DB47B4F56254/image-size/large?v=v2&px=999 "image.png")

2. When adding a JIRA link, it gets converted to the JIRA macro, upon saving the updated page, the JIRA link is unable to display the details but instead displays the text: "java.io.IOException: Error on line 78: The entity name must immediately follow the '\&' in the entity reference."

![image.png](/t5/image/serverpage/image-id/108008i76772DAB2438A897/image-size/large?v=v2&px=999 "image.png")![image.png](/t5/image/serverpage/image-id/108009i1108F31431E96F61/image-size/large?v=v2&px=999 "image.png")3. The following error is found in atlassian-confluence.log:

```
Caused by: java.io.IOException: Error on line 78: The entity name must immediately follow the '&' in the entity reference.
at com.atlassian.confluence.extra.jira.request.JiraChannelResponseHandler.getChannelElement(JiraChannelResponseHandler.java:48)
at com.atlassian.confluence.extra.jira.JiraIssuesManager$ByteStreamBasedSupplier.get(JiraIssuesManager.java:138)
```

<br />

4. Versions:  
Confluence 7.6.2  
Jira v8.8.0

<br />

5. The application links status both in JIRA and Confluence are "CONNECTED" with the outgoing and incoming connections set as "OAuth (impersonation)".

6. Same display is observed if using other user with the same permissions.


Answers:
author: Nici Emmel
body: Hello everyone,

this problem is due to the fact that the **Application Whitelist** -\> **IP Filter** field in the **Secure Login Configuration** has not been configured correctly for the respective environment.

If anyone needs support to find out the correct IP addresses of their applications, please contact us via our [Service Portal](https://syracom-bee.atlassian.net/servicedesk/customer/portal/1). We will be happy to help you.

Best regards,   
Nici


author: Nici Emmel
body: Hello everyone,  
which 2FA app do you use and have you already been able to solve your issues?  
For all those who use Secure Login (2FA) from syracom, I can offer to find a solution together with you.

Best regards,  
Nici

comments: author: Muhammad Azam
body: issue has been resolved when i set these setting

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/316414iDF36D61E80590C5D/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/316413i7B10E748BE7B942A/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/316415iA097671424AADFF7/image-size/large?v=v2&px=999 "image.png")


author: Razeen Ahmad
body: found a solution to this:  
for us it was the 2FA app on jira causing this.  
When i disabled it .. it allowed the info to pass from jira to confluence.  
So for a proper fix.. i added our jira group name into the app white list feature.  
Working well now.

comments: author: Jan-Peter Rusch
body: Doesn't solve the problem on my side. I disabled our 2FA app (SecSign) on both systems (Confluence \& Jira). The issue still persists.


author: Azraai Baharin
body: Yup, it is the same case for us too; JIRA's 2FA plugin. But we are struggling to whitelist our confluence based on IP (due to the nature in which we deploy it).   

May I know what do you mean by "added our jira group name into the app white list feature"?


author: Daniel Zauner
body: maybe oldie but goldie:

We ended up solving this two-fold:

- on one customer setup, we used the WAN IP since it's static, so the entire AppLink traffic is taking the scenic route via WAN.

- second customer setup, we solved it at the load balancer level (routing between VMs is done on the LB machine) in combination with a custom header that's stamped only "internal" traffic


author: FrancescoKa
body: I have a similar problem between:

* confluence 6.15.1
* jira 8.17.1

In addition,

* from Confluence I am able to create an Issue in Jira,
* But if I try to insert a Jira issue in a Confluence page I get the error:
  * Received the following error code HTTP from server:200

MFA is configured on both Jira and Confluence


author: Razeen Ahmad
body: Any resolution to this?  
having exact same issue with exact same versions...


author: Jan-Peter Rusch
body: We're also affected with a similar message, if a user is not logged into Jira.

```
2020-09-11 08:57:10,758 ERROR [JIM Marshaller:thread-291] [extra.jira.request.JiraChannelResponseHandler] getChannelElement Error while trying to assemble the issues returned in XML format: Error on line 4: The entity name must immediately follow the '&' in the entity reference.
-- url: /confluence/display/SPACE/PAGENAME| traceId: f74f25314edcf420 | userName: xxx | page: 470451431 | action: viewpage
```


Tags: confluence-server

server