Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5372

Images/Resources without size property don't get served.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.13, 5.1.1
    • 4.5.12
    • templating
    • OS X, Java 6, Mysql

      Some of the images that we have in our media repository don't get served properly. They throw a PathNotFoundException.

      This is caused by an attempt to access the size property which they don't have.

      In the Magnolia 4.4.12 version this does not happen.
      The difference is caused by that in info.magnolia.module.templating.RenderingFilter

      String sizeString = atom.getAttribute("size"); //$NON-NLS-1$
      

      Returns an empty string on no size property and in version 4.5.12
      info.magnolia.rendering.engine.RenderingFilter

      Property sizeProperty = atom.getProperty("size");
      

      throws a PathNotFoundException

        Acceptance criteria

              mdivilek Milan Divilek
              rico.jansen Rico Jansen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD