Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-1

Errors in XML serialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • Core
    • None

    Description

      From http://github.com/cloudkick/libcloud/issues#issue/13:

      Errors in the system can turn into XML serialization errors. The one I'm encountering now (which I haven't quite tracked down) is a name attribute with a value of None. ET constructs the nodes fine, but when you call ET.tostring() it gives a nasty exception, like:

      ...
      File "/usr/lib/python2.5/xml/etree/ElementTree.py", line 777, in _raise_serialization_error
      "cannot serialize %r (type %s)" % (text, type(text)._name_)
      TypeError: cannot serialize None (type NoneType)

      That's not very helpful. Guarding ET.tostring with some debugging code for exceptions would be handy.

      Attachments

        Activity

          People

            Unassigned Unassigned
            oremj Jeremiah Orem
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: