[tDiary-users-talk: 0466] recent_tweetのsecurity error

Zurück zum Archiv-Index

MORIOKA Toru vette****@mail*****
2010年 9月 11日 (土) 19:11:15 JST


vetteです。

tDiaryを 2.2.xから3.0.0へ変更後、Rubyを1.8.7から1.9.2にあげたところ、
recent_tweet.rbでエラーが出るようになってしまいました。

Ruby1.9でも正常に動いているかはいらっしゃるでしょうか?
Ruby1.9なら発生するものであればどなたか回避策をご存じないでしょうか。

(plugin/recent_tweet.rb):69:in `block in recent_tweet_call_api’ の箇所は
以下の呼び出しになっています。

> open( request, :proxy => proxy ) {|f| f.read }

-------
500 Internal Server Error
Insecure operation - expand_path (SecurityError)

/usr/local/lib/ruby/1.9.1/tmpdir.rb:132:in `expand_path'
/usr/local/lib/ruby/1.9.1/tmpdir.rb:132:in `create'
/usr/local/lib/ruby/1.9.1/tempfile.rb:134:in `initialize'
/usr/local/lib/ruby/1.9.1/open-uri.rb:379:in `new'
/usr/local/lib/ruby/1.9.1/open-uri.rb:379:in `<<'
/usr/local/lib/ruby/1.9.1/open-uri.rb:322:in `block (3 levels) in open_http'
/usr/local/lib/ruby/1.9.1/net/protocol.rb:387:in `call_block'
/usr/local/lib/ruby/1.9.1/net/protocol.rb:378:in `<<'
/usr/local/lib/ruby/1.9.1/net/protocol.rb:84:in `read'
/usr/local/lib/ruby/1.9.1/net/http.rb:2416:in `read_body_0'
/usr/local/lib/ruby/1.9.1/net/http.rb:2371:in `read_body'
/usr/local/lib/ruby/1.9.1/open-uri.rb:321:in `block (2 levels) in open_http'
/usr/local/lib/ruby/1.9.1/net/http.rb:1186:in `block in transport_request'
/usr/local/lib/ruby/1.9.1/net/http.rb:2334:in `reading_body'
/usr/local/lib/ruby/1.9.1/net/http.rb:1185:in `transport_request'
/usr/local/lib/ruby/1.9.1/net/http.rb:1169:in `request'
/usr/local/lib/ruby/1.9.1/open-uri.rb:312:in `block in open_http'
/usr/local/lib/ruby/1.9.1/net/http.rb:627:in `start'
/usr/local/lib/ruby/1.9.1/open-uri.rb:306:in `open_http'
/usr/local/lib/ruby/1.9.1/open-uri.rb:769:in `buffer_open'
/usr/local/lib/ruby/1.9.1/open-uri.rb:203:in `block in open_loop'
/usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `catch'
/usr/local/lib/ruby/1.9.1/open-uri.rb:201:in `open_loop'
/usr/local/lib/ruby/1.9.1/open-uri.rb:146:in `open_uri'
/usr/local/lib/ruby/1.9.1/open-uri.rb:671:in `open'
/usr/local/lib/ruby/1.9.1/open-uri.rb:33:in `open'
(plugin/recent_tweet.rb):69:in `block in recent_tweet_call_api'
/usr/local/lib/ruby/1.9.1/timeout.rb:57:in `timeout'
/usr/local/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
(plugin/recent_tweet.rb):68:in `recent_tweet_call_api'
(plugin/recent_tweet.rb):21:in `rescue in recent_tweet'
(plugin/recent_tweet.rb):13:in `recent_tweet'
(TDiary::Plugin#eval_src):1143:in `block in eval_src’



----------------------------------------------------------
MORIOKA Toru/森岡徹
E-mail:vette****@mail*****




tDiary-users-talk メーリングリストの案内
Zurück zum Archiv-Index