Process.euid() not implemented, causes MailFactory failure
----------------------------------------------------------
Key: JRUBY-1106
URL: http://jira.codehaus.org/browse/JRUBY-1106
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.0.0RC2
Environment: Windows XP, with and without NetBeans
Reporter: Eric Armstrong
Assignee: Thomas E Enebo
Running JRuby in NetBeans:
-------------------------
require 'rubygems'
require 'mailfactory'
mail = MailFactory.new()
mail.to = 'to address'
mail.from = 'from address'
mail.subject = 'subject'
mail.text = 'message'
puts mail.to_s
--returns nil
Running JIRB:
------------
jirb> require 'rubygems'
jirb> require 'mailfactory'
jirb> mail = MailFactory.new()
jirb> mail.to_s
NoMethodError: undefined or inaccessible method `euid' for
Process:Module
from
C:/jruby-1.0.0RC2/lib/ruby/gems/1.8/gems/mailfactory-1.2.3/lib/mail
factory.rb:181:in `method_missing'
from
C:/jruby-1.0.0RC2/lib/ruby/gems/1.8/gems/mailfactory-1.2.3/lib/mail
factory.rb:181:in `construct'
from
C:/jruby-1.0.0RC2/lib/ruby/gems/1.8/gems/mailfactory-1.2.3/lib/mail
factory.rb:211:in `to_s'
from (irb):1:in `binding'
irb(main):011:0>
Although reported on line 181, the error appears to stem
from line 182 of factory.rb:
add_header("Message-ID",
"<#{Time.now.to_f()}.#{Process.euid()}.#{String.new.object_id()[EMAIL
PROTECTED]>")
^^^^^^^^^^^^^^
According to the API docs:
Process.euid => fixnum
Returns the effective user ID for this process.
Process.euid #=> 501
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.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