Details
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.
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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Throw IOException with detailed message about the resource that returns a null InputStream.