[
https://jira.jboss.org/jira/browse/JBPORTAL-2440?page=com.atlassian.jira....
]
Bernard de Terwangne commented on JBPORTAL-2440:
------------------------------------------------
Thomas,
I've signed the agrement last friday as you've already sugested last week for
another bug. It seems the validation is pending. In the mean time I just attach my fix to
this ticket.
Bernard
Incorrect values of escapeXml in actionURL result in confusing
NullPointerException in JBoss Portlet Container
--------------------------------------------------------------------------------------------------------------
Key: JBPORTAL-2440
URL:
https://jira.jboss.org/jira/browse/JBPORTAL-2440
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal Core
Affects Versions: Portlet-2.0.1
Environment: Any
Reporter: Bernard de Terwangne
Priority: Minor
JSR-286 states that escapeXml defaults to true. This value is almost never appropriate.
If you forget to set it to false explicitly (very common mistake) you get a very confusing
and little explicit NullPointerException.
I suggest to throw a more explicit exception so that developpers don't loose a lot of
time wondering why their apps don't work. I can provide the fix if requested.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira