Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-1154

StaticResourceServlet should send a 404 page not found if the resource doesn't exists

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 2.04.06, 2.05.00
    • 2.05.02, 2.10.01
    • None
    • None

    Description

      When a file doesn't exists a 200 with size 0 is returned.

      When fixing this also please don't catch Exception and hide the stack trace which make analyzing on production systems hard. For example when the resource doesn't exists the following message is logged which isn't very helpful:

      02.08.2010 01:08:40 WARN [org.hippoecm.hst.servlet.StaticResourceServlet.doGet():243] Exception during writing content of /icon-blog.png: java.io.IOException: Stream closed

      Attachments

        Activity

          People

            aschrijvers Ard Schrijvers
            bvdschans Bart van der Schans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: