]> git.donarmstrong.com Git - debbugs.git/commitdiff
Don't serialize things as date/time in soap (closes: #484789)
authorDon Armstrong <don@donarmstrong.com>
Fri, 1 Aug 2008 04:18:50 +0000 (21:18 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 1 Aug 2008 04:18:50 +0000 (21:18 -0700)
cgi/soap.cgi
debian/changelog

index b5766d7a52108e25c606f5f1885109daed217a38..b30151ef5cf9f210ac97659031cf298b4ea68101 100755 (executable)
@@ -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;
 
index 3bc2acdd1d5428a542deba3180f3e3ef5f49d6ad..422c01aeeed2e585bfc348b21a97c5048a30fffb 100644 (file)
@@ -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 <cjwatson@debian.org>  Fri, 20 Jun 2003 18:57:25 +0100