Encountered _APP_UNKNOWN Error When Using JIRA Issues Macro
Symptoms
The error is similar to:
Errors were reported by the JIRA trusted connection.
* APP_UNKNOWN; Unknown Application: {0}; ["confluence:4557196"]
Cause
- The application is trying to use the trusted protocol when a trusted application link is not configured.
- The application ID generated in Confluence is different than what is stored in JIRA.
The application ID is generated in Confluence by calculating the MD5 hash key from its Server ID. Specifically, the application ID is the first 3 bytes of the MD5 hash calculation of your Server ID.
So when creating a trusted application session in JIRA, JIRA will go to the Confluence link that you provided http://yourConfluenceSite.com and thenhttp://yourConfluenceSite.com/admin/appTrustCertificateto retrieve the Application ID and the public key.
Resolution
- If the connection is not trusted, add the parameter anonymous=true to the macro text.
- Remove the Confluence trusted application setting saved in JIRA and recreate it again. If doesn't work, remove the saved setting, restart JIRA, and recreate.
There should be an entry in JIRA's trustedapp
table referencing the correct entry in Confluence's keystore table.