You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Martin Kreidenweis (JIRA)" <ji...@apache.org> on 2011/02/22 09:39:38 UTC

[jira] Created: (OFBIZ-4196) Non-existing image (new image management system) returns 500 error instead of 404

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.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

        

[jira] Resolved: (OFBIZ-4196) Non-existing image (new image management system) returns 500 error instead of 404

Posted by "Hans Bakker (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-4196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hans Bakker resolved OFBIZ-4196.
--------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

fix Committed revision 1076582.

> 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
>             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

        

[jira] Closed: (OFBIZ-4196) Non-existing image (new image management system) returns 500 error instead of 404

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ 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