From: Don Armstrong Date: Fri, 1 Aug 2008 04:18:50 +0000 (-0700) Subject: Don't serialize things as date/time in soap (closes: #484789) X-Git-Tag: release/2.6.0~488^2~24 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=16d22ea43c12b5b9ffff446a84b4641aeec3101b;p=debbugs.git Don't serialize things as date/time in soap (closes: #484789) --- diff --git a/cgi/soap.cgi b/cgi/soap.cgi index b5766d7a..b30151ef 100755 --- a/cgi/soap.cgi +++ b/cgi/soap.cgi @@ -16,5 +16,13 @@ my $soap = Debbugs::SOAP::Server # soapy is stupid, and is using the 1999 schema; override it. *SOAP::XMLSchema1999::Serializer::as_base64Binary = \&SOAP::XMLSchema2001::Serializer::as_base64Binary; *SOAP::Serializer::as_anyURI = \&SOAP::XMLSchema2001::Serializer::as_string; -$soap-> handle; +# to work around the serializer improperly using date/time stuff +# (Nothing in Debbugs should be looked at as if it were date/time) we +# kill off all of the date/time related bits in the serializer. +my $typelookup = $soap->serializer()->{_typelookup}; +for my $key (keys %{$type_lookup}) { + next unless /Month|Day|Year|date|time|duration/; + delete $type_lookup->{$key}; +} +$soap->handle; diff --git a/debian/changelog b/debian/changelog index 3bc2acdd..422c01ae 100644 --- a/debian/changelog +++ b/debian/changelog @@ -217,6 +217,7 @@ debbugs (2.4.2) UNRELEASED; urgency=low - Allow for the archiving of bugs in removed packages (closes: #475622) - Add Text::Template based templating system (closes: #36814) - Add new uservalue feature to Debbugs::User + - Don't serialize things as date/time in soap (closes: #484789) -- Colin Watson Fri, 20 Jun 2003 18:57:25 +0100