From d48c173bfd2ba6267b71cbfeb3c3eae14f18f79e Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 15 May 2015 16:18:00 -0700 Subject: [PATCH] Fix SOAP module hack to work around Date/Time encoding which broke in newer versions of SOAP::Lite. (Closes: #785405) --- cgi/soap.cgi | 7 ++++++- debian/changelog | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cgi/soap.cgi b/cgi/soap.cgi index 53f7368..261042b 100755 --- a/cgi/soap.cgi +++ b/cgi/soap.cgi @@ -28,7 +28,12 @@ my $soap = Debbugs::SOAP::Server # kill off all of the date/time related bits in the serializer. my $typelookup = $soap->serializer()->{_typelookup}; for my $key (keys %{$typelookup}) { - delete $typelookup->{$key} if defined $key and $key =~ /Month|Day|Year|date|time|duration/i; + if (defined $key and + $key =~ /Month|Day|Year|date|time|duration/i + ) { + # set the sub to always return 0 + $typelookup->{$key}[1] = sub { 0 }; + } } our $warnings = ''; diff --git a/debian/changelog b/debian/changelog index e95c835..dfee543 100644 --- a/debian/changelog +++ b/debian/changelog @@ -32,6 +32,8 @@ debbugs (2.6.0~exp1) UNRELEASED; urgency=low * Support control at submit time. (Closes: #49228). * Add the limit command which constrains control@ (Closes: #208130). * Depend on libmime-tools-perl instead of libmime-perl. (Closes: #665001). + * Fix SOAP module hack to work around Date/Time encoding which broke in + newer versions of SOAP::Lite. (Closes: #785405) [Thanks to Arnout Engelen: ] * Add Homepage (closes: #670555). -- 2.39.2