Jira Chart Macro not able to display image and getting 401 error

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

   

要約

Jira Chart Macro cannot display images as it is failing to download the chart files from Jira Server.


環境

  • Confluence version 7.3.3
  • Custom SSO is being used for authentication.

診断

The HTTP request from Jira Chart macro returns 401 error like the following:

2020-09-26 16:44:28,838 ERROR [http-nio-8090-exec-16] [confluence.plugins.jiracharts.JiraChartMacro] getCustomPlaceholder Error getting Jira Chart Macro image placeholder
 -- referer: https://confluence.test.com/display/TS/test | url: /plugins/viewsource/viewpagesrc.action | traceId: xxxx | userName: xxx | action: viewpagesrc
com.atlassian.confluence.macro.MacroExecutionException: com.atlassian.sal.api.net.ResponseException: Can not retrieve jira chart image
...
Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://jira.test.com/charts?filename=jfreechart-onetime-xxxx.png
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)

原因


The Jira chart is created on the Jira server on the fly and Confluence downloads the chart file with an HTTP request. With the custom SSO, the HTTP request redirects to SSO and fails with a 401 (Unauthorized) error.  The same error did not happen on the Crowd SSO(SAML), so the issue could be specific to the custom SSO being used.

ソリューション

The custom SSO configuration need to be reviewed and reconfigured in a way that HTTP request from the Jira chart macro file can be downloaded without authentication for the SSO.

最終更新日: 2020 年 12 月 16 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.