Xuân Baldauf created JRUBY-6575:
-----------------------------------

             Summary: Base64.strict_decode64 is not strict
                 Key: JRUBY-6575
                 URL: https://jira.codehaus.org/browse/JRUBY-6575
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.7
            Reporter: Xuân Baldauf
            Priority: Minor



When the input to Base64.strict_decode64() is actually not base64, then there 
should be an error raised, not the input silently discarded.

Expected:

> rvm ruby-1.9.3-p0-mri exec irb
1.9.3p0 :001 > require 'base64'
 => true 
1.9.3p0 :002 > Base64.strict_decode64("%")
ArgumentError: invalid base64


Actual:

> rvm jruby-1.6.7 exec jruby --1.9 -S irb
jruby-1.6.7 :001 > require 'base64'
 => true 
jruby-1.6.7 :002 > Base64.strict_decode64("%")
 => "" 




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to