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=5558>.
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=5558

AbstractValidatorAction: type="long" nullable="yes" succeeds for non-numeric data

           Summary: AbstractValidatorAction: type="long" nullable="yes"
                    succeeds for non-numeric data
           Product: Cocoon 2
           Version: 2.0
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: general components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When a parameter is defined like:

<parameter name="xpto" type="long" nullable="yes"/>

And the user specifies a non-numeric value (for instance, "abc"), the
validation succeeds.

This is because getLongValue(name, conf, param, is_string); returns null for
text values, and the parameter is specified as "nullable".

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to