DVCS JIRA plugin redirects to 404 Page Not Found
Symptoms
Trying to link accounts from BitBucket to JIRA redirects to page Not Found (404). The following are shown in the UI
Cause
The action to link the accounts from BitBucket to JIRA would redirect the page to Bitbucket and it will request authentication from Bitbucket. The issue is usually because the Bitbucket URL is redirecting to JIRA Base URL by third party application such as SSL, IIS, or Apache Proxy. You would require to ensure the request of outside URL from JIRA is not redirected back to JIRA Base URL.
Workaround
Re-configure the integration with third party application such as SSL, IIS or Apache Proxy to allow request of outside URL from JIRA and to not have it redirect back to JIRA Base URL.