0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Confluence 6.15.7で、ページから参照されている添付ファイルをゴミ箱から完全に削除すると、ページを更新できない

Last updated at Posted at 2023-07-07

環境

  • Confluence 6.15.7

何が起きたか

Confluenceのページにスクリーンショット画像が添付されています。

image.png

"Source editor"で確認できるConfluenceのXMLは、以下の通りです。

<p>
  <ac:image ac:height="80" ac:thumbnail="true">
    <ri:attachment ri:filename="image2023-7-6_21-57-8.png"/>
  </ac:image>
</p>

添付ファイルページから、スクリーンショット画像をゴミ箱へ移動し、さらにゴミ箱からも削除しました。

image.png

その後、ページを編集して更新ボタンを押すと、「リクエストを処理しているときにエラーが発生しました。」というメッセージが表示されて、ページを更新することができませんでした。
image.png

Source editorを開くと、"Error loading source"というメッセージが表示され、XMLは消えました。
image.png

RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=1453295149,type=attachment]) (500)

"storage format"は、ConfluenceのXMLのことのようです。
https://ja.confluence.atlassian.com/doc/confluence-storage-format-790796544.html

"editor format"の具体的なフォーマットは分かりませんでした。

どのように解決したか

一旦過去のバージョンに復元して、再度最新のバージョンに復元すれば、ページを更新できるようになりました。

なお、ConfluenceのXMLは以下の通りです。<ri:attachment><ri:url>に変更されました。

<p>
  <ac:image ac:thumbnail="true" ac:title="image2023-7-6_21-57-8.png">
    <ri:url ri:value="http://kurusugawa.jp/confluence/plugins/servlet/confluence/placeholder/unknown-attachment?locale=ja_JP&amp;version=2"/>
  </ac:image>
</p>

補足

ゴミ箱に移動するだけなら、ページは更新できました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?