|
| Summary: |
Error logs when diffing old revisions whose attachment content is missing |
| Issue Type: |
Bug |
| Affects Versions: |
11.3 |
| Assignee: |
Unassigned |
| Components: |
Old Core |
| Created: |
02/Jun/26 10:15 |
| Priority: |
Major |
| Reporter: |
Manuel Leduc |
| Description: |
Reproduction steps Variant A — delete + purge (recycle bin enabled)
- Create page Test.ReproDiff.
- Attach image.png (note the version, e.g. 2.1).
- Edit to insert the image in the page content
- Delete the attachment (it goes to the attachment recycle bin).
- Go to the deleted attachments tab of the page index and permanently delete the attachment
- Open the changes viewer between two early revisions: /xwiki/bin/view/Test/ReproDiff/?viewer=changes&rev1=4.1&rev2=2.1
Variant B — attachment rename/delete + page move
- Create a page P
- Attach a.png,
- Insert the image in the page content
- Rename a.png → b.png (or simply delete a.png).
- Move/rename the page P → Q.
- Diff two old revisions (now served from Q) that both reference a.png: /xwiki/bin/view/<Q>/?viewer=changes&rev1=4.1&rev2=2.1
Order matters: the attachment delete/rename must happen before the page move.
Expected
- The changes/diff page renders without any ERROR in the logs.
- For the attachment whose content can no longer be read, the diff shows the "The content diff is not available…" message introduced by
XWIKI-15805 (web.history.changes.attachment.notAvailable), instead of failing the comparison.
- When the content is still present in the recycle bin (Variant B), it should be recovered and the real content diff shown.
Actual
- The page still renders, but for each affected attachment the log gets a full stack trace at ERROR level:
|
|