Newly created pages are labelled unintentionally with 'unrestored-unknown-attachment' label
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
Atlassian implemented an automatic labeling function to correct the pages affected by bug: CONFSERVER-55928 - Attachments become 'Unknown Attachment' in the page editor with Collaborative Editing turned on
Further details about the plugin created to implement this labeling can be found in the suggestion: CONFSERVER-63615 - Provide workaround for fixing broken unknown attachment placeholder in storage format
However, some users experience that newly created pages also are labeled unintentionally with unrestored-unknown-attachment labels.
環境
Confluence is running on versions 7.4.9, 7.11.3, 7.12.1, 7.13.0 or later.
原因
If a user creates a page as a copy of an existing page with the option "Include attached files and images" unchecked, the new page is missing the previous page attachments and it will be automatically labeled as "unrestored-unknown-attachment”.
ソリューション
To prevent this behavior for new pages, disable the Reconcile unknown attachments plugin.
- Browse to General Configuration > Manage Apps
- Select System apps
- Find Confluence Unknown Attachment Reconciliation Plugin and click on Disable
- From now on, new pages should not be labeled as "unrestored-unknown-attachment”
The already affected pages will have to be unlabeled manually. The following SQL can be used to identify the creator of the page, the last editor/modifier of that page along with the timestamp respectively which are labeled with unrestored-unknown-attachment label:
SELECT c.contentid,
c.title,
u.username AS Creator,
c.creationdate,
c.lastmoddate,
um.username AS LastModifier from content c
JOIN user_mapping u ON c.creator = u.user_key
JOIN user_mapping um ON c.lastmodifier = um.user_key
where c.contentid in (select contentid from bodycontent where body like '%unrestored-unknown-attachment%') and prevver is null;