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

ImagingServlet is not handling non io exceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.0, 3.5.9
    • 3.5.2
    • None

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

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