[
https://issues.jboss.org/browse/GTNPORTAL-2514?page=com.atlassian.jira.pl...
]
Gary Hu commented on GTNPORTAL-2514:
------------------------------------
This issue could be reproduced against the EPP-SP 5.2.1-GA out of box installation:
1) change the PreNodeSaveInterceptor.groovy via the ecmdemo admin ui.
Group->Content Manager's Page -> Administration -> Advanced Configurations
> Manage Scripts > select interceptor in dropdown list -> click the
"Edit' icon for PreNodeSaveInterceptor.groovy
Add the following to the groovy template:
import org.exoplatform.web.application.ApplicationMessage;
import org.exoplatform.webui.exception.MessageException;
public void execute(Object context) throws Exception{
...
throw new MessageException(new
ApplicationMessage("Exception1<br/>Exception2",null,
ApplicationMessage.WARNING));
}
2) create new content from Content Explorer
click "New Content" button under Content Explorer and create a new content, for
example "eXo:Article". After finishing the content and click "Save"
button.
It will show the NoSuchMethodError as reported in REDHAT-10. I had to recompile the
exo-ecms-core-webui-2.3.6-CP01.jar using the workaround mentioned in REDHAT-10 to get this
around. I'm attaching the recompiled jar file for your reference. To apply it just
replace the original one under gatein-wcm-extension-5.2.1-exo-2.3.6-CP01.ear/lib with the
attached one.
After applying the "patch", and if you go through the same steps mentioned
above, you will see the exception messages show on the pop up box.
In EPP5.1
The message would have been
--------------------------
Exception1
Exception2
---------------------------
i.e <br/> acts like a line break.
In EPP5.2.1
I am getting
Exception1<br/>Exception2
Html tags included in exception messages are escaped
----------------------------------------------------
Key: GTNPORTAL-2514
URL:
https://issues.jboss.org/browse/GTNPORTAL-2514
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: WebUI
Affects Versions: 3.2.0-GA
Environment: EPP-SP 5.2.1-GA
Reporter: boughzela Aymen
We have some customized exception message includes some html tags, such as
"<br/>", etc.
We expect those html tags could help format the exception messages showing on the dialog
popup box triggered by Site Publisher UI.
However, the html tags apparently are escaped on the UI. It just shows what it is. This
was not happening in EPP 5.1.1.
In EPP5.1
The message would have been
--------------------------
Exception1
Exception2
---------------------------
i.e <br/> acts like a line break.
In EPP5.2.1
I am getting
Exception1<br/>Exception2
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira