Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001284 [Resin] major always 08-10-06 06:48 08-21-06 09:21
Reporter slonopotamus View Status public  
Assigned To ferg
Priority normal Resolution duplicate  
Status closed   Product Version 3.0.20
Summary 0001284: void EL functions with String argument produce garbage output
Description Affected versions: 3.0.14, 3.0.19, 3.0.20
Expected: empty <body></body> tag.
Actual: garbage character (usually character with code 0) between <body> and </body>
Additional Information To reproduce: rename el-bug.war.zip to el-bug.war, deploy attached JAR-file to Resin and open /el-bug/index.jspx

Source of ru.hh.resin.elbug.Functions.java:

package ru.hh.resin.elbug;

public class Functions {
  public static void doNothingVoid (final String var) {
  }
}

Source of index.jspx:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
    xmlns:tags="urn:jsptld:/WEB-INF/tags.tld"
    xmlns:jsp="http://java.sun.com/JSP/Page" [^]
    xmlns="http://www.w3.org/1999/xhtml" [^]
    version="2.0">
  <jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
  <html>
    <body>${tags:doNothing("teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest")}</body>
  </html>
</jsp:root>

Source of tags.tld:

<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^] xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee [^] http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" [^] version="2.0">
  <tlib-version>2.0</tlib-version>
  <short-name>tags</short-name>
  <function>
    <name>doNothing</name>
    <function-class>ru.hh.resin.elbug.Functions</function-class>
    <function-signature>void doNothingVoid(java.lang.String)</function-signature>
  </function>
</taglib>
Attached Files

- Relationships

- Notes
(0001449)
slonopotamus
08-10-06 06:50

Example can be downloaded here: http://slonopotamus.org/el-bug.war [^]
 
(0001450)
slonopotamus
08-10-06 06:52

Sorry for duplicates, I was trying to attach example WAR.
 
(0001451)
slonopotamus
08-10-06 07:12
edited on: 08-10-06 07:23

Resin 3.0.10 and 3.0.13 are affected too.

 
(0001454)
anonymous
08-11-06 02:46

Actually problem is with Strings in EL expressions.
This example produces same error:

<?xml version="1.0" encoding="UTF-8"?>
<jsp:root
    xmlns:tags="urn:jsptld:/WEB-INF/tags.tld"
    xmlns:jsp="http://java.sun.com/JSP/Page" [^]
    xmlns="http://www.w3.org/1999/xhtml" [^]
    version="2.0">
  <jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
  <html>
    <body>${"test"}</body>
  </html>
</jsp:root>
 
(0001465)
ferg
08-21-06 09:21

duplicate of 0001281
 

- Issue History
Date Modified Username Field Change
08-10-06 06:48 slonopotamus New Issue
08-10-06 06:50 slonopotamus Note Added: 0001449
08-10-06 06:50 slonopotamus Issue Monitored: slonopotamus
08-10-06 06:52 slonopotamus Note Added: 0001450
08-10-06 07:12 slonopotamus Note Added: 0001451
08-10-06 07:23 slonopotamus Note Added: 0001452
08-10-06 07:23 slonopotamus Note Edited: 0001451
08-10-06 07:23 slonopotamus Note Deleted: 0001452
08-11-06 02:46 anonymous Note Added: 0001454
08-11-06 02:57 slonopotamus Note Added: 0001455
08-11-06 02:58 slonopotamus Note Deleted: 0001455
08-21-06 09:21 ferg Note Added: 0001465
08-21-06 09:21 ferg Assigned To  => ferg
08-21-06 09:21 ferg Status new => closed
08-21-06 09:21 ferg Resolution open => duplicate
08-21-06 09:21 ferg Fixed in Version  => 3.0.22


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
44 total queries executed.
31 unique queries executed.
Powered by Mantis Bugtracker