Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4196

Non-existing image (new image management system) returns 500 error instead of 404

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • Trunk
    • content
    • None

    Description

      The new ImageUrlServlet throws an IndexOutOfBoundsException or NullPointerException when called with invalid paths:
      https://demo-trunk.ofbiz.apache.org/catalog/images/foo.jpg
      https://demo-trunk.ofbiz.apache.org/catalog/images/foo/bar.jpg
      This causes Tomcat to show a stacktrace with HTTP status code 500.

      It should return a 404 Not Found error instead.

      Attachments

        Activity

          People

            hansbak Hans Bakker
            mkreidenweis Martin Kreidenweis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: