Skip Menu |
 

This queue is for tickets about the HTTP-Message CPAN distribution.

Report information
The Basics
Id: 92475
Status: resolved
Priority: 0/
Queue: HTTP-Message

People
Owner: Nobody in particular
Requestors: shenzhongqiang [...] msn.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 6.06
Fixed in: (no value)



Subject: bug with decoded_content() if response header does not contain Content-Encoding
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-4298-1390701350-696.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 161
Download (untitled) / with headers
text/plain 161b
The bug exists in 6.06, but not in 6.02. If the response header does not have a Content-Encoding header, decoded_content() returns nothing. I am using perl5.10
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-4298-1390701350-696.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: API
References: <rt-4.0.18-4298-1390701350-696.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-19994-1439012086-1347.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.18-19994-1439012086-1036.92475-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
From: bunder [...] t-25.ru
Content-Length: 306
Download (untitled) / with headers
text/plain 306b
Same behaviour with v6.10 on Perl v5.22.0. Test [1] does not work. Response is obtained using LWP::UserAgent->new->get("file://$Bin/data/UTF-8.html"). It has no Content-Encoding headers. But HTML in content has one. [1] http://cpansearch.perl.org/src/VANSTYN/Email-MIME-CreateHTML-1.041/t/UTF-8_html.t
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-19994-1439012086-1347.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-4298-1390701350-696.0-0-0 [...] rt.cpan.org> <rt-4.0.18-19994-1439012086-1347.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-31109-1439047328-780.92475-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: 553
Download (untitled) / with headers
text/plain 553b
On 2015-08-08 01:34:47, bunder@t-25.ru wrote: Show quoted text
> Same behaviour with v6.10 on Perl v5.22.0. Test [1] does not work. > > Response is obtained using LWP::UserAgent->new-
> >get("file://$Bin/data/UTF-8.html"). It has no Content-Encoding
> headers. But HTML in content has one. > > [1] http://cpansearch.perl.org/src/VANSTYN/Email-MIME-CreateHTML- > 1.041/t/UTF-8_html.t
Maybe the failure depends on a particular environment? The CPAN Testers fail/pass overview http://fast-matrix.cpantesters.org/?dist=Email-MIME-CreateHTML%201.041 shows only 2‰ FAILs.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-31109-1439047328-780.92475-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: API
References: <rt-4.0.18-4298-1390701350-696.0-0-0 [...] rt.cpan.org> <rt-4.0.18-19994-1439012086-1347.0-0-0 [...] rt.cpan.org> <rt-4.0.18-31109-1439047328-780.92475-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-17322-1439354827-520.0-0-0 [...] rt.cpan.org>
Message-ID: <rt-4.0.18-17322-1439354827-1812.92475-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
From: bunder [...] t-25.ru
Content-Length: 494
Download (untitled) / with headers
text/plain 494b
On Aug 08 11:22:08 2015, SREZIC wrote: Show quoted text
> Maybe the failure depends on a particular environment? The CPAN > Testers fail/pass overview http://fast- > matrix.cpantesters.org/?dist=Email-MIME-CreateHTML%201.041 shows only > 2‰ FAILs.
Ok, I've found the problem. IO::HTML was not installed on my system, however HTTP::Message depends on it at runtime. I've filed a bug to packager [1]. With IO::HTML installed test passes. [1] https://bugs.archlinux.org/task/45960 With respect, Anton Leontiev
X-RT-Interface: REST
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
RT-Message-ID: <rt-4.0.18-19076-1490922042-507.92475-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 82


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.