Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003436 [Resin] major always 04-06-09 08:11 11-02-09 18:23
Reporter paru View Status public  
Assigned To
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.2 Product Version 3.1.9
  Product Build
Summary 0003436: findAncestorWithClass() does not return parent classic tag instance within classic tag embedded in a tag file
Description Please imagine the following web application:
- a bodyful classic tag A within a tag library
- a tag file B which uses the classic tag A
- a regular jsp, which uses tag file B, surrounded by classic tag A

Within the classic tag findAncestorWithClass(this, A.class) is called and printed to the JspWriter.

The outer classic tag instance of A correctly returns null in this case.
The inner classic tag instance of A also returns null.

This seems to be not correct, I expected that resin should return the outer tag instance.

Steps To Reproduce
Additional Information Please have a look at the attached example war (with sources).
When accessing index.jsp, resin 3.1.9 (snapshot) outputs the following:

-- classicTest begin
findAncestorWithClass() returns null
-- Tag file begin
findAncestorWithClass() returns null
-- tag file end
-- classicTest end

In comparison to tomcat 5.5:

-- classicTest begin
findAncestorWithClass() returns null
-- Tag file begin
findAncestorWithClass() returns classictag.ClassicTag@e77781
-- tag file end
-- classicTest end

...and WebSphere 6.1:

-- classicTest begin
findAncestorWithClass() returns null
-- Tag file begin
findAncestorWithClass() returns classictag.ClassicTag@ec2de5
-- tag file end
-- classicTest end
Attached Files  TagAdapterTest.war [^] (3,900 bytes) 04-06-09 08:11

- Relationships

- Notes
(0004095)
paru
07-16-09 04:18

Is there any estimation when this bug will be fixed?
It's quite important for us and our customers which use Resin.
 
(0004277)
alex
11-02-09 18:23

jsp/1o2(0,1)
 

- Issue History
Date Modified Username Field Change
04-06-09 08:11 paru New Issue
04-06-09 08:11 paru File Added: TagAdapterTest.war
04-06-09 08:18 stbu Issue Monitored: stbu
04-08-09 09:17 ferg Priority normal => urgent
07-16-09 04:18 paru Note Added: 0004095
11-02-09 18:23 alex Status new => closed
11-02-09 18:23 alex Note Added: 0004277
11-02-09 18:23 alex Resolution open => fixed
11-02-09 18:23 alex Fixed in Version  => 4.0.2


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