Bugs item #870541, was opened at 2004-01-04 21:46
Message generated for change (Comment added) made by dan_higgins1
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=870541&group_id=22866

Category: Nukes
Group: CVS HEAD
Status: Open
Resolution: None
Priority: 5
Submitted By: Dan Higgins (dan_higgins1)
Assigned to: Julien Viet (cooperfbi)
Summary: Nukes not evaluting ${config:minAge} correctly

Initial Comment:
The file ../modules/user/module.html has the following
code which is not working properly:
...
${user.WelcomeTo} ${config:siteName} ${user.Registration}
...
${user.MustBe_1} ${config:minAge} ${user.MustBe_2}
...

The checkage page shows " ..18 or over, or have
parental permission to register here."  

The number 18 is currently hardcoded in
Resource_en_US.properties file.

The minAge attribute has a value set in the core mbean
but is not parsed correctly.

----------------------------------------------------------------------

>Comment By: Dan Higgins (dan_higgins1)
Date: 2004-01-05 21:56

Message:
Logged In: YES 
user_id=464007

The bug is in the create method of the CoreModule.java file.
 The current code is only returning objects that are of type
String. minAge is a number and therefore null is being returned.

Below is a listing of the previous code and a potential fix.
//return (value instanceof String) ? (String) value : null;
return (value != null) ? String.valueOf(value) : null;

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=870541&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to