From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.216.173.66 with SMTP id u44cs76187wel; Fri, 28 May 2010 19:31:41 -0700 (PDT) Received: by 10.231.178.132 with SMTP id bm4mr1422458ibb.62.1275100300952; Fri, 28 May 2010 19:31:40 -0700 (PDT) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 27si5038909ibw.19.2010.05.28.19.31.40; Fri, 28 May 2010 19:31:40 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 20198185836E; Fri, 28 May 2010 22:31:40 -0400 (EDT) Received: from entry.masanjin.net (masanjin.net [209.20.72.13]) by rubyforge.org (Postfix) with ESMTP id ECA6B1858364 for ; Fri, 28 May 2010 22:31:31 -0400 (EDT) Received: from localhost ([127.0.0.1] helo=entry.masanjin.net) by entry.masanjin.net with esmtp (Exim 4.69) (envelope-from ) id 1OIBpg-0003x1-1S for sup-devel@rubyforge.org; Fri, 28 May 2010 22:31:31 -0400 Content-Type: multipart/mixed; boundary="===============7442598405338069574==" MIME-Version: 1.0 To: sup-devel@rubyforge.org From: =?utf-8?q?=C3=81lvaro_Herrera_=3Csup-bugs=40masanjin=2Enet=3E?=@rubyforge.org Date: Sat, 29 May 2010 02:31:27 +0000 Precedence: bulk X-Roundup-Name: Sup issue tracker X-Roundup-Loop: hello X-Roundup-Version: 1.4.10 Message-Id: <1275100287.61.0.534667728298.issue105@masanjin.net> X-Roundup-issue-status: unread X-Roundup-issue-files: msgchunks.patch X-Roundup-issue-priority: bug In-Reply-To: <1275100287.61.0.534667728298.issue105@masanjin.net> Subject: [sup-devel] [issue105] crash exception when viewing attachment with /s in filename X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Reply-To: Sup issue tracker , Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============7442598405338069574== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable New submission from =C3=81lvaro Herrera : Got this exception today: --- RuntimeError from thread: main cannot generate tempfile `/home/alvherre/tmp/13416-9-/pgpatches/regexp' /usr/lib/ruby/1.8/tempfile.rb:52:in `initialize' /usr/lib/ruby/1.8/sup/message-chunks.rb:152:in `new' /usr/lib/ruby/1.8/sup/message-chunks.rb:152:in `write_to_disk' /usr/lib/ruby/1.8/sup/message-chunks.rb:145:in `view!' /usr/lib/ruby/1.8/sup/modes/thread-view-mode.rb:839:in `view' /usr/lib/ruby/1.8/sup/modes/thread-view-mode.rb:341:in `activate_chunk' /usr/lib/ruby/1.8/sup/mode.rb:59:in `send' /usr/lib/ruby/1.8/sup/mode.rb:59:in `handle_input' /usr/lib/ruby/1.8/sup/buffer.rb:279:in `handle_input' /usr/bin/sup-mail:277 The problem is that the attachment contains forward slashes in the filename= , and=20 this makes tempfile to raise an exception because it's expecting the direct= ory=20 to exist. Example message: http://archives.postgresql.org/msgtxt.php? id=3D201005290201.o4T21bk04708@momjian.us The attached patch (to 0.11) fixes the problem. ---------- files: msgchunks.patch messages: 240 nosy: alvherre priority: bug ruby_version: 1.8 status: unread sup_version: 0.11 title: crash exception when viewing attachment with /s in filename _________________________________________ Sup issue tracker _________________________________________ --===============7442598405338069574== Content-Type: application/octet-stream MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="msgchunks.patch" LS0tIG1lc3NhZ2UtY2h1bmtzLnJiLm9yaWcJMjAxMC0wNS0yOCAyMjoyNDozMC4wMDAwMDAwMDAg LTA0MDAKKysrIG1lc3NhZ2UtY2h1bmtzLnJiCTIwMTAtMDUtMjggMjI6MjQ6MzcuMDAwMDAwMDAw IC0wNDAwCkBAIC0xNDksNyArMTQ5LDcgQEAKICAgICBlbmQKIAogICAgIGRlZiB3cml0ZV90b19k aXNrCi0gICAgICBmaWxlID0gVGVtcGZpbGUubmV3KEBmaWxlbmFtZSB8fCAic3VwLWF0dGFjaG1l bnQiKQorICAgICAgZmlsZSA9IFRlbXBmaWxlLm5ldyhAZmlsZW5hbWUuZ3N1YigiLyIsICJfIikg fHwgInN1cC1hdHRhY2htZW50IikKICAgICAgIGZpbGUucHJpbnQgQHJhd19jb250ZW50CiAgICAg ICBmaWxlLmNsb3NlCiAgICAgICBmaWxlLnBhdGgK --===============7442598405338069574== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============7442598405338069574==--