cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4293] New: - session:get-attribute bug
Date Fri, 19 Oct 2001 15:12:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4293>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4293

session:get-attribute bug

           Summary: session:get-attribute bug
           Product: Cocoon 2
           Version: 2.0rc1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: paolo@arsenio.net


I discovered that the session logicsheet has a bug into the session:get-
attribute template.

It break my code when trying to get a non-string session object stored as 
attribute with a java.lang.ClassCastException: java.lang.String because the 
logicsheet always create a call to the constructor getSessionAttribute passing 
it a default value (an empty string or the default value specified with 
session:get-attribute).

This should be corrected, by checking the existence of the default parameter 
and create a call to the constructor without it if none is specified.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message