Non-existing image (new image management system) returns 500 error instead of 404
---------------------------------------------------------------------------------
Key: OFBIZ-4196
URL:
https://issues.apache.org/jira/browse/OFBIZ-4196 Project: OFBiz
Issue Type: Bug
Components: content
Affects Versions: SVN trunk
Reporter: Martin Kreidenweis
The new ImageUrlServlet throws an IndexOutOfBoundsException or NullPointerException when called with invalid paths:
https://demo-trunk.ofbiz.apache.org/catalog/images/foo.jpghttps://demo-trunk.ofbiz.apache.org/catalog/images/foo/bar.jpgThis causes Tomcat to show a stacktrace with HTTP status code 500.
It should return a 404 Not Found error instead.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira