Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-1149

ImageGalery is not editable when referenced DMS folder is deleted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0.10
    • 2.0.9
    • None
    • None

      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)
      

        Acceptance criteria

              jsimak Jaroslav Simak
              had Jan Haderka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: