ICEfaces
  1. ICEfaces
  2. ICE-4637

Improve feedback/logging when Resources cannot be found.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Any

      Description

      The ResourceDispatcher uses a Resource interface to abstract the various types of resources (filesystem files, files in jars, etc) that the framework serves. If a problem occurs when serving one of these resources, there is currently no easy way to tell which resource was involved (the exact Resource implementation, what it was attempting to load, and where it was attempting to load it from) and why it failed. We need to add logic and/or logging that reveals these details.

      One approach would be to add some code around:

      ResourceDispatcher.response.writeBodyFrom(resource.open());

      It might also be necessary to expand the Resource interface to expose a method that provides more information about the particular resource.

        Activity

        Deryk Sinotte created issue -
        Deryk Sinotte made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 1.8.2 [ 10190 ]
        Assignee Priority P2
        Assignee Mircea Toma [ mircea.toma ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19001 Fri Jun 26 07:08:59 MDT 2009 mircea.toma ICE-4637 Throw IOException with detailed message about the resource that returns a null InputStream.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/ResourceDispatcher.java
        Hide
        Mircea Toma added a comment -

        Throw IOException with detailed message about the resource that returns a null InputStream.

        Show
        Mircea Toma added a comment - Throw IOException with detailed message about the resource that returns a null InputStream.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.8.2-RC1 [ 10210 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: