Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha3
-
Fix Version/s: 2.0-Alpha3
-
Component/s: Samples
-
Labels:None
-
Environment:ICEpush
Description
Images and CSS files are not being served by the icechat-spring demo.
Implementation verified on both Tomcat and GlassFish v3.
Current code contains:
InputStream fileStream = session.getServletContext().getResourceAsStream(filePath);
which causes the creation of a session just for serving resources. This should be optimized
by implementing ServletContextAware and obtaining the ServletContext without the HttpSession reference.
(Even better would be to add getServletContext() to ServletRequest.)