Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-1.8.2.GA_P07
-
Fix Version/s: EE-1.8.2.GA_P08
-
Component/s: Framework
-
Labels:None
-
Environment:Woodstock
-
Assignee Priority:P2
-
Salesforce Case Reference:
Description
From the changes made in ICE-7941 a ClassCastException is thrown when accessing a non-ICEfaces page. In the customers use case they have some old Woodstock components on these pages.
The following code fix has been confirmed by the customer:
private String getContextPath(ExternalContext extContext) {
{ contextPath = publicContextPath; }if (contextPath == null) {
ServletContext servletContext = (ServletContext) extContext.getContext();
String publicContextPath = servletContext.getInitParameter("publicContextPath");
if (null != publicContextPath)
else
{ contextPath = extContext.getRequestContextPath(); }// Configuration configuration = ((BridgeExternalContext) extContext).getConfiguration();
{ contextPath = "/" + contextPath; }// contextPath = configuration.getAttribute("publicContextPath", extContext.getRequestContextPath());
if (!contextPath.startsWith("/"))
if (contextPath.endsWith("/"))
{ contextPath = contextPath.substring(0, contextPath.length() - 1); }}
return contextPath;
}