Skip Menu |
 

This queue is for tickets about the Filter CPAN distribution.

Report information
The Basics
Id: 101033
Status: stalled
Priority: 0/
Queue: Filter

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.53
Fixed in: (no value)



Subject: filter_read in block mode makes DATA handle empty
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
Message-ID: <rt-4.0.18-22094-1419091282-106.0-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1419091282-22094-2"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
Content-Length: 205
Download (untitled) / with headers
text/plain 205b
Found while debugging bug report for Switch: https://rt.cpan.org/Ticket/Display.html?id=97440 Test case attached. If I remove "use S1;" there is content in DATA. -- Alexandr Ciornii, http://chorny.net
Subject: S1.pm
MIME-Version: 1.0
Content-Type: text/x-perl; name="S1.pm"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="S1.pm"
Content-Transfer-Encoding: binary
Content-Length: 251
Download S1.pm
text/x-perl 251b
package S1; use strict; use Filter::Util::Call; sub import { filter_add({}); 1; } sub unimport { filter_del() } sub filter { my($self) = @_ ; my $status = 1; $status = filter_read(1_000_000); print "code: !$_!\n\n"; return $status; } 1;
Subject: t.pl
MIME-Version: 1.0
Content-Type: application/x-perl; name="t.pl"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="t.pl"
Content-Transfer-Encoding: base64
Content-Length: 72
Download t.pl
text/x-perl 72b
#!/usr/bin/perl -w use S1; print 'data: ', <DATA>; __DATA__ test
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-22094-1419091282-106.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-22094-1419091282-106.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-25409-1437905472-1250.101033-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 208
Download (untitled) / with headers
text/plain 208b
I added a TODO testcase to the repo https://github.com/rurban/Filter/commits/master But I'm not sure if it can be fixed at all, or if we have to leave that as serious limitation. I'll check. -- Reini Urban


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.