Mantis - Resin
Viewing Issue Advanced Details
1327 major always 09-03-06 09:55 09-05-06 14:33
slonopotamus  
ferg  
normal  
closed 3.0.21  
fixed  
none    
none 3.1.0  
0001327: Invalid handling of nonexistent properties in EL expressions
JavaServer Pages 2.0 Specification, JSP.2.3.4 Operators "[]" and "."
-----
To evaluate expr-a[expr-b]:
? Evaluate expr-a into value-a
? If value-a is null, return null.
? Evaluate expr-b into value-b
? If value-b is null, return null.
? If value-a is a Map, List, or array:
 ...
? Otherwise (a JavaBeans object), coerce value-b to String
 ? If value-b is a readable property of value-a, as per the JavaBeans specification:
  ? If getter throws an exception: error
  ? Otherwise: return result of getter call
 ? Otherwise: error.
-----
If expr-a is a JavaBean and expr-b is a nonexistent property of that bean then error should occur. Tomcat and SJAS do so. But Resin silently returns null instead.
Steps to reproduce:
1) Deploy http://slonopotamus.org/nonexistent-property-bug.war [^] to Resin.
2) Open test.jspx page.

Notes
(0001499)
ferg   
09-05-06 14:33   
jsp/30c2