Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-239

ImagingServlet is not handling non io exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5.9
    • 3.5.2
    • None

      Steps to reproduce

      1. Throw any exception other than IllegalArgumentException, ImagingRuntimeException, ImagingException, IOException
        • E.g. Use invalid file ending like ".Jpg" (capital "J" lowercase "pg"), will throw IllegalStateException("Can't find ImageWriter for Jpg")

      Expected results

      Exception is logged and an error response is returned.

      Actual results

      Exception is not logged nor is any response returned.

      Workaround

      Development notes

      Simple catching Exception instead of IOException should fix it:

      https://git.magnolia-cms.com/projects/MODULES/repos/imaging/browse/magnolia-imaging/src/main/java/info/magnolia/imaging/ImagingServlet.java#92

        Acceptance criteria

              anh.vu Anh Vu
              beschle Björn Eschle
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 5d 2.5h
                    5d 2.5h