[MGNLSTK-1149] ImageGalery is not editable when referenced DMS folder is deleted Created: 16/Apr/13  Updated: 18/Apr/13  Resolved: 18/Apr/13

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 2.0.9
Fix Version/s: 2.0.10

Type: Bug Priority: Critical
Reporter: Jan Haderka Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

To reproduce:

  • create Image Gallery component
  • go to DMS and delete folder with images referenced by above image gallery
  • re-render the page with image gallery
    result:
  • component can't be edited anymore
    expected result:
  • warning is displayed about missing target folder, but component remains editable.
Caused by: info.magnolia.jcr.RuntimeRepositoryException: javax.jcr.ItemNotFoundException: 27d8dac0-757a-44be-997a-5411997a2367
	at info.magnolia.module.templatingkit.functions.STKTemplatingFunctions.getReferencedContent(STKTemplatingFunctions.java:440)
	at info.magnolia.module.templatingkit.templates.components.ImageGalleryParagraphModel.getKeys(ImageGalleryParagraphModel.java:101)
	at info.magnolia.module.templatingkit.templates.components.ImageGalleryParagraphModel.getImages(ImageGalleryParagraphModel.java:86)


 Comments   
Comment by Jan Haderka [ 17/Apr/13 ]

Port to master? Or if this is solved in another ticket, add link to such ticket.

Comment by Jaroslav Simak [ 18/Apr/13 ]

Port to master is not necessary - ImageGallery uses DAM to load images. If we remove folder with images there is no freemarker error and ImageGallery is still editable.

Generated at Mon Feb 12 07:33:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.