[MAGNOLIA-5801] uploaded images don't restore properly when restoring a past page version Created: 15/May/14  Updated: 01/Jul/14  Resolved: 02/Jun/14

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 4.5.20

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
relation
is related to MGNLSTK-1055 Diff and version view does not show u... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

When restoring a versioned imaging resource (the property's controlType in dialogue is "file") the imaging resource location (URL) is restored properly, also the restored image in the dialogue's preview is correct. However, the image displayed in the rendered page remains the old one.

Here, the single steps to re-produce the issue:

  1. Add an (file) image to a page/component
  2. Create a version of the page by activating it
  3. Change the image
  4. Activate the change
  5. By using right-click open the "versions" of the page and choose the version with the first image - restore the page
  6. Now, the page still shows the second image!

However, as mentioned above, the dialog shows the first image (correct) and the image URL also names the correct version (first image file name).

Side Note: When using controlType "dam", the restoration works fine, the image is properly restored.



 Comments   
Comment by Milan Divilek [ 02/Jun/14 ]

Issue is caused that metadata (modification date, author id) are not updated during restore. That caused resolving the image as not changed in info.magnolia.imaging.caching.AbstractContentBasedCachingStrategy#shouldRegenerate method and not regenerating it while it should.

Generated at Mon Feb 12 04:08:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.