[ https://issues.apache.org/jira/browse/OFBIZ-4196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-4196. ---------------------------------- Assignee: Hans Bakker Thanks Hans > 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 > Assignee: Hans Bakker > Fix For: SVN trunk > > > 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. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira