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