You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2001/10/19 17:12:11 UTC
DO NOT REPLY [Bug 4293] New: -
session:get-attribute bug
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