Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7DR#1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Portal
Description
One of the methods of OutputChart makes a cast to ServletContext. This causes an exception when running in a portal environment. The method is getPath:
public String getPath() {
String folder = "/";
if (getFacesContext() != null &&
getFacesContext().getExternalContext() != null) {
if (DOMResponseWriter.isStreamWriting()) {
folder = "./web/chart/images";
} else {
folder =
((ServletContext) getFacesContext().getExternalContext()
.getContext()).getRealPath("/charts");
}
}
return folder;
}
I did a quick search of the component section of the repository and only found one other reference in InputFile but it might be legitimate as file upload is handled in a servlet context.
public String getPath() {
String folder = "/";
if (getFacesContext() != null &&
getFacesContext().getExternalContext() != null) {
if (DOMResponseWriter.isStreamWriting()) {
folder = "./web/chart/images";
} else {
folder =
((ServletContext) getFacesContext().getExternalContext()
.getContext()).getRealPath("/charts");
}
}
return folder;
}
I did a quick search of the component section of the repository and only found one other reference in InputFile but it might be legitimate as file upload is handled in a servlet context.
Issue Links
- is duplicated by
-
ICE-2261 OutputChart NPE in WebLogic 9.2
- Closed
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #14879 | Fri Sep 28 12:38:31 MDT 2007 | adnan.durrani | Fix for New ResourceRegistry API used. |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputchart/OutputChartRenderer.java
MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputchart/AbstractChart.java MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputchart/OutputChart.java |