quattor / CCM

Configuration Cache Manager
www.quattor.org
Other
4 stars 13 forks source link

fetch.t unittest fails on el5 #158

Closed stdweird closed 7 years ago

stdweird commented 7 years ago

the unittest 20 that retrieves https://www.google.com returns an empty filereader on el5; altough the response object has valid _content attribute and is considered success (it has code 200); it looks the decoded_content method returns an undef.

this is the response instance

# VERBOSE rs $VAR1 = bless( {
#                  '_protocol' => 'HTTP/1.1',
#                  '_content' => '<!doctype html><html items
...
# </script></div></body></html>',
#                  '_rc' => '200',
#                  '_headers' => bless( {
#                                         'connection' => 'close',
...
stdweird commented 7 years ago

it's some decoding error on el5

# VERBOSE decoded_content failed utf8 "\xEB" does not map to Unicode at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Encode.pm line 173.
#  at /home/quattor/quattordev/repos/CCM/target/lib/perl/EDG/WP4/CCM/Fetch/Download.pm line 152
stdweird commented 7 years ago

it's very odd, content type from the response is

#                                                                 'content-type' => [
#                                                                                     'text/html; charset=UTF-8',
#                                                                                     'text/html;charset=utf-8'
#                                                                                   ],

the failing chars are

nowrap="">Belgi<EB></div>

(dutch for belgium)

stdweird commented 7 years ago

@jrha build_all_repos on el6 and el7 is fully succesful and does not have this