[
https://issues.jboss.org/browse/GTNWSRP-184?page=com.atlassian.jira.plugi...
]
Matt Wringe edited comment on GTNWSRP-184 at 4/29/11 4:57 PM:
--------------------------------------------------------------
So, there is something strange happening in the editor code itself, its using the created
url to determine a suffix, and is failing because its not expecting the url to be a wsrp
type url.
From
{noformat}
org.richfaces.renderkit.html.EditorRendererBase.getResourceSuffix(FacesContext context,
String resourceName){
InternetResource resource = getResource(resourceName);
String resourceUri = resource.getUri(context, null);
String suffix = resourceUri.substring(resourceUri.indexOf(resourceName) +
resourceName.length());
return suffix;
}
{noformat}
For example resourceUri ends up being something like
wsrp_rewrite?wsrp-urlType=resource&%3Bwsrp-url=http%3A%2F%2F127.0.0.1%3A8080%2Frichfaces-basic%2Ffaces%2FrfResorg%2Frichfaces%2Frenderkit%2Fhtml%2F1%241.xcss%2FDATB%2FeAELXT5DOhSIAQ%21sA18_&%3Bwsrp-requiresRewrite=true%2Fwsrp_rewrite
And the resourceName is org/richfaces/renderkit/html/1$1.xcss
So instead of returning something like /DATB/eAELXT5DOhSIAQ!sA18_
it gets
mp%3Bwsrp-url=http%3A%2F%2F127.0.0.1%3A8080%2Frichfaces-basic%2Ffaces%2FrfResorg%2Frichfaces%2Frenderkit%2Fhtml%2F1%241.xcss%2FDATB%2FeAELXT5DOhSIAQ%21sA18_&%3Bwsrp-requiresRewrite=true%2Fwsrp_rewrite
Note sure if this is entirely the fault of richfaces or if the bridge is encoding the url
when the url should not be encoded
was (Author: mwringe):
So, there is something strange happening in the editor code itself, its using the
created url to determine a suffix, and is failing because its not expecting the url to be
a wsrp type url.
From the
org.richfaces.renderkit.html.EditorRendererBase.getResourceSuffix(FacesContext context,
String resourceName){
InternetResource resource = getResource(resourceName);
String resourceUri = resource.getUri(context, null);
String suffix = resourceUri.substring(resourceUri.indexOf(resourceName) +
resourceName.length());
return suffix;
}
For example resourceUri ends up being something like
wsrp_rewrite?wsrp-urlType=resource&%3Bwsrp-url=http%3A%2F%2F127.0.0.1%3A8080%2Frichfaces-basic%2Ffaces%2FrfResorg%2Frichfaces%2Frenderkit%2Fhtml%2F1%241.xcss%2FDATB%2FeAELXT5DOhSIAQ%21sA18_&%3Bwsrp-requiresRewrite=true%2Fwsrp_rewrite
And the resourceName is org/richfaces/renderkit/html/1$1.xcss
So instead of returning something like /DATB/eAELXT5DOhSIAQ!sA18_ it gets
mp%3Bwsrp-url=http%3A%2F%2F127.0.0.1%3A8080%2Frichfaces-basic%2Ffaces%2FrfResorg%2Frichfaces%2Frenderkit%2Fhtml%2F1%241.xcss%2FDATB%2FeAELXT5DOhSIAQ%21sA18_&%3Bwsrp-requiresRewrite=true%2Fwsrp_rewrite
Note sure if this is entirely the fault of richfaces or if the bridge is encoding the url
when the url should not be encoded
Richfaces - editor
------------------
Key: GTNWSRP-184
URL:
https://issues.jboss.org/browse/GTNWSRP-184
Project: GateIn WSRP
Issue Type: Sub-task
Affects Versions: 2.0.0-CR03
Environment: richfacesPortlet from 2.1.0.CR2.EPP51
Reporter: Michal Vanco
Assignee: Matt Wringe
Fix For: 2.0.1-GA, 2.1.0
Editor is not visible at all. (only right pane)
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira