[
https://issues.apache.org/jira/browse/TRINIDAD-1781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabrielle Crawford resolved TRINIDAD-1781.
------------------------------------------
Fix Version/s: 2.0.0.3-core
Resolution: Fixed
> duplicate string for facesMessage created from Throwable
> --------------------------------------------------------
>
> Key: TRINIDAD-1781
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1781
> Project: MyFaces Trinidad
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-2
> Reporter: Gabrielle Crawford
> Assignee: Gabrielle Crawford
> Fix For: 2.0.0.3-core
>
>
> In org.apache.myfaces.trinidad.util.MessageFactory we have this method
> public static FacesMessage getMessage(Throwable error)
> {
> _LOG.fine(error);
> Throwable unwrap = ComponentUtils.unwrap(error);
> String detail = unwrap.getLocalizedMessage();
> if (detail == null)
> {
> // this is unusual. It is probably an unexpected RT error
> // in the framework. log at warning level:
> detail = unwrap.getClass().getName();
> _LOG.warning(error);
> }
> // bug 4733165:
> FacesMessage message =
> new FacesMessage(FacesMessage.SEVERITY_ERROR, detail, detail);
> return message;
> }
> This is using the same string for the summary and detail, hence the same
> string is being printed out twice in the message. The summary should be null
> instead
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira