]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 486306: Truncated XML-RPC response (incorrect content-length header)
authormkanat%bugzilla.org <>
Fri, 4 Sep 2009 21:29:29 +0000 (21:29 +0000)
committermkanat%bugzilla.org <>
Fri, 4 Sep 2009 21:29:29 +0000 (21:29 +0000)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla/Install/Requirements.pm
Bugzilla/WebService/Server/XMLRPC.pm

index fce49f286ae80a179dc54c85176f774f41dbc48e..8050231d9fe5cf8423cd86995cf3e71fb76d7da8 100644 (file)
@@ -224,9 +224,9 @@ sub OPTIONAL_MODULES {
     {
         package => 'SOAP-Lite',
         module  => 'SOAP::Lite',
-        version => 0,
-        # These versions (0.70 -> 0.710.05) are affected by bug 468009
-        blacklist => ['^0\.70', '^0\.710?\.0[1-5]$'],
+        # 0.710.04 is required for correct UTF-8 handling, but .04 and .05 are
+        # affected by bug 468009.
+        version => '0.710.06',
         feature => 'XML-RPC Interface'
     },
     {
index 8954969c71dd09c5fde36c19e1b0f75874afbbd9..fb335671509906dbf6fc90b818b3742e4c47622c 100644 (file)
@@ -161,16 +161,6 @@ sub new {
     return $self;
 }
 
-sub as_string {
-    my $self = shift;
-    my ($value) = @_;
-    # Something weird happens with XML::Parser when we have upper-ASCII 
-    # characters encoded as UTF-8, and this fixes it.
-    utf8::encode($value) if utf8::is_utf8($value) 
-                            && $value =~ /^[\x00-\xff]+$/;
-    return $self->SUPER::as_string($value);
-}
-
 # Here the XMLRPC::Serializer is extended to use the XMLRPC nil extension.
 sub encode_object {
     my $self = shift;