プロジェクト

全般

プロフィール

Vote #63696

完了

rdm-mailhandler.rb can't handle https url

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2008/07/31
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
2
issue_org_id:
1724
author_id:
1742
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

When I tried to use the rdm-mailhanlder.rb script with a https URL, I got the following error.

/usr/lib/ruby/1.8/net/http.rb:2022:in `read_status_line': wrong status line: "" (Net::HTTPBadResponse)
        from /usr/lib/ruby/1.8/net/http.rb:2009:in `read_new'
        from /usr/lib/ruby/1.8/net/http.rb:1050:in `request'
        from /usr/lib/ruby/1.8/net/http.rb:405:in `post_form'
        from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
        from /usr/lib/ruby/1.8/net/http.rb:404:in `post_form'
        from /opt/rails/redmine/extra/mail_handler/rdm-mailhandler.rb:62:in `submit'
        from /opt/rails/redmine/extra/mail_handler/rdm-mailhandler.rb:112

I search around the internet and created a patch for this. Based on http://www.missiondata.com/blog/ruby/65/building-a-better-world-with-google-spreadsheets/.

Redmine version: trunk (revision 1711)
rdm-mailhandler.rb: revision 1643
Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111)


journals

I enhanced the patch to distinguish between http and https connection.
It's a quick and dirty hack, a option is probably a better soultion.
--------------------------------------------------------------------------------
Fixed in r1715 with a slightly different patch.
Thanks for pointing out.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0