This project is archived and is in readonly mode.

#3731 ✓invalid
Thiago Pradi

ActionMailer errors on ruby-1.9.1-p376

Reported by Thiago Pradi | January 17th, 2010 @ 11:33 PM

1) Error:
test_decode_message_with_incorrect_charset(ActionMailerTest):
ArgumentError: invalid byte sequence in US-ASCII

/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `gsub'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `to_crlf'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1437:in `raw_source='
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1526:in `init_with_string'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:106:in `initialize'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:876:in `test_decode_message_with_incorrect_charset'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'

2) Error: test_decode_message_with_unknown_charset(ActionMailerTest):
ArgumentError: invalid byte sequence in US-ASCII

/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `gsub'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `to_crlf'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1437:in `raw_source='
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1526:in `init_with_string'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:106:in `initialize'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:1035:in `test_decode_message_with_unknown_charset'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'

3) Error: test_decode_message_without_content_type(ActionMailerTest):
ArgumentError: invalid byte sequence in US-ASCII

/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `gsub'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/core_extensions/string.rb:4:in `to_crlf'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1437:in `raw_source='
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:1526:in `init_with_string'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/message.rb:106:in `initialize'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.5.4/lib/mail/mail.rb:50:in `new'
/Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:870:in `test_decode_message_without_content_type'
/Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'

Getting this errors with Ruby 1.9.1 p376 running on Mac OSX.

Comments and changes to this ticket

  • José Valim

    José Valim January 18th, 2010 @ 09:00 AM

    Can't duplicate. Which mail version you have bundled?

  • Thiago Pradi

    Thiago Pradi January 19th, 2010 @ 04:28 AM

    mail-1.6.0 and mail-1.5.4 raises the same error for me.

    1) Error: test_decode_message_with_incorrect_charset(ActionMailerTest):
    ArgumentError: invalid byte sequence in US-ASCII

    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `gsub'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `to_crlf'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1428:in `raw_source='
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1517:in `init_with_string'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:106:in `initialize'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:875:in `test_decode_message_with_incorrect_charset'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'
    

    2) Error: test_decode_message_with_unknown_charset(ActionMailerTest):
    ArgumentError: invalid byte sequence in US-ASCII

    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `gsub'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `to_crlf'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1428:in `raw_source='
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1517:in `init_with_string'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:106:in `initialize'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:1034:in `test_decode_message_with_unknown_charset'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'
    

    3) Error: test_decode_message_without_content_type(ActionMailerTest):
    ArgumentError: invalid byte sequence in US-ASCII

    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `gsub'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/core_extensions/string.rb:4:in `to_crlf'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1428:in `raw_source='
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:1517:in `init_with_string'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/message.rb:106:in `initialize'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mail-1.6.0/lib/mail/mail.rb:50:in `new'
    /Users/tchandy/Projetos/OpenSource/rails/actionmailer/test/mail_service_test.rb:869:in `test_decode_message_without_content_type'
    /Users/tchandy/Projetos/OpenSource/rails/vendor/gems/ruby/1.9.1/gems/mocha-0.9.8/lib/mocha/integration/mini_test/version_131_and_above.rb:27:in `run'
    

    143 tests, 385 assertions, 0 failures, 3 errors, 0 skips
    rake aborted!
    Command failed with status (1): [/Users/tchandy/.rvm/ruby-1.9.1-p376/bin/ru...]

    (See full trace by running task with --trace)

  • Mikel Lindsaar

    Mikel Lindsaar January 19th, 2010 @ 09:13 AM

    Can you put the email that raised the error as an attachment?

    You can sanitise it first, but try not to change the contents (charsets) too much.

    Mikel

  • Rizwan Reza

    Rizwan Reza January 21st, 2010 @ 04:50 PM

    • State changed from “new” to “invalid”
    • Tag cleared.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages