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
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.
-
You can reply to this email to add a comment to the issue online.