summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-09-04 23:27:54 +0200
committermkanat%bugzilla.org <>2009-09-04 23:27:54 +0200
commit283d5785c782e3a79eb371cd6a223d19205bd175 (patch)
treeb5abef5375254595f653adb38ccd8977e77b864c /Bugzilla
parent27cc3de61a1ad1a02b859cfe3dd96aa916295426 (diff)
downloadbugzilla-283d5785c782e3a79eb371cd6a223d19205bd175.tar.gz
bugzilla-283d5785c782e3a79eb371cd6a223d19205bd175.tar.xz
Bug 486306: Truncated XML-RPC response (incorrect content-length header)
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/Requirements.pm6
-rw-r--r--Bugzilla/WebService/Server/XMLRPC.pm10
2 files changed, 3 insertions, 13 deletions
diff --git a/Bugzilla/Install/Requirements.pm b/Bugzilla/Install/Requirements.pm
index f3e6a654b..a957ceb10 100644
--- a/Bugzilla/Install/Requirements.pm
+++ b/Bugzilla/Install/Requirements.pm
@@ -219,9 +219,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 => ['xmlrpc'],
},
{
diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm
index e85fab95c..c85614f7a 100644
--- a/Bugzilla/WebService/Server/XMLRPC.pm
+++ b/Bugzilla/WebService/Server/XMLRPC.pm
@@ -149,16 +149,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;