# Bug JIM-91 - Imprecise error for unallowed IP when testing Jira connection

Project: Stream Jira to OpenProject data Migrator
Status: closed
URL: https://community.openproject.org/work_packages/JIM-91

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Integrations / Jira |
| Target versions | 17.5.0 |
| Observed in versions | 17.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Andrej Sandorf |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Have a Jira DC installed on a [private IP address](https://en.wikipedia.org/wiki/Private_network) like 10.1.2.3 or 192.168.17.4, and have a dns name pointing to that IP address

2.  Go to the Jira migrator and add a configuration

3.  Add the url and token

4.  Click "Test configuration"

### What is the buggy behavior?

  - Due to ssrf protection, the access to the ip is blocked and the following error is displayed: "Connection error: Failed to connect to Jira server: Hostname 'xxx.com' has no public ip addresses"

### What is the expected behavior?

1.  It displays a specific error message: `Connection blocked: the Jira host resolves to a private IP address. If your Jira instance runs on an internal network, allow its IP via the OPENPROJECT_SSRF__PROTECTION__IP__ALLOWLIST environment variable. Please see our`[`documentation.`](https://www.openproject.org/docs/installation-and-operations/configuration/ssrf-protection/?go_to_locale=en)

2.  Documentation for SSRF protection exists and is **linked** in the test connection functionality and the Jira migrator documentation

### Screenshots and other files

<img class="image_resized op-uc-image op-uc-image_inline" style="width:491px;" src="/api/v3/attachments/921139/content">

### Environment information

**OpenProject installation type**

  - Docker-compose installation

**OpenProject version**

17.4.0
