[gatein-issues] [JBoss JIRA] Created: (GTNPORTAL-1016) Fix resource resolver error handling
Julien Viet (JIRA)
jira-events at lists.jboss.org
Thu Apr 1 10:23:37 EDT 2010
Fix resource resolver error handling
------------------------------------
Key: GTNPORTAL-1016
URL: https://jira.jboss.org/jira/browse/GTNPORTAL-1016
Project: GateIn Portal
Issue Type: Task
Security Level: Public (Everyone can see)
Affects Versions: 3.0.0-GA
Reporter: Julien Viet
Fix For: 3.1.0-GA
The resource resolver resolve() method sometimes fails but does not provide information that helps to understand the cause of the error:
- fails with an NPE if the provided path is null on the line "return context.getResource(path.substring(i1));" which is hard to distinguish whether the context or the path variable is null
- does not respect the contract: if the context is null then null must be returned "Returns a {@link org.exoplatform.portal.resource.Resource} for the provided path or null if the resource cannot be resolved".
--
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
More information about the gatein-issues
mailing list