[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: |
|
||||||||||||
| 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:
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. |