ページの表示時に添付ファイルのプレビューを確認できないがほかの添付ファイル機能は問題なく動作する
プラットフォームについて: 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 は除く
問題
通常のページ ビューで添付ファイルをクリックしてプレビューを表示しようとしても、何も起こらない。
- 編集モードでは添付ファイルのプレビューは正常に行える
- 添付ファイル ページでの添付ファイルのプレビューや表示は正常に行える
- ファイルのダウンロードは問題なく行える
画像のプレビューを表示しようとしたときに、HAR の出力に次の内容が表示される。
レスポンス | リクエスト |
---|---|
404 | POST <base_url>/rest/files/1.0/files/content/xxxxxxxx/minusAttachment |
404 | POST <base_url>/rest/files/1.0/files/content/xxxxxxxx/byAttachmentIds |
診断
Diagnostic Steps
- Verify the Confluence Document Conversion Library, Confluence Previews, Confluence Files (confluence-files), Confluence View File Macro system apps are all enabled, also verify that all their modules are enabled. For Office documents, also check that the Office Connector app is enabled.
- > [一般設定] > [アドオンの管理] でドロップダウン メニューから [システム] を選択し、Confluence Document Conversion Library を検索します
あるいは、データベースに対して次の SQL クエリを実行し、無効化されている Confluence アプリを確認することもできます。
SELECT BANDANAVALUE FROM BANDANA WHERE BANDANAKEY = 'plugin.manager.state.Map';
結果は次のようになります。
<string>com.atlassian.confluence.plugins.confluence-document-conversion-library</string> <boolean>false</boolean> <string>com.atlassian.confluence.plugins.confluence-files</string><boolean>false</boolean>
原因
Some modules in the Confluence Previews app are dependent on the Confluence Document Conversion Library and Confluence Files (confluence-files). If either or both are disabled it will not be possible to preview files on the page though other preview and download actions work as expected.
ソリューション
Confluence Document Conversion Library アプリ (および他の必須アプリ) を再有効化します。
- > General Admin > Manage Add-ons > select System from the drop-down menu > search for Confluence Document Conversion Library and Confluence Files (confluence-files)
- Enable the Confluence Document Conversion Library and Confluence Files (confluence-files) plugin
- 無効化されているモジュールを有効化します
- ページでファイルのプレビューを確認できるようになります
また、次の記事を利用してすべての Confluence アプリをクリアしてデフォルト状態に戻すことができます。データベースを通じてすべての Confluence プラグインをデフォルト状態にリセットする方法
Please ensure you create the proper backups of your instance and database, and stage a test prior to making changes to your production database