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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: