Summary: |
Introspect method of Session DBus object returns a non-well-formed introspection xml |
Product: |
ConsoleKit
|
Reporter: |
Gökçen Eraslan <gokcen.eraslan> |
Component: |
Daemon | Assignee: |
william.jon.mccann |
Status: |
RESOLVED
WORKSFORME
|
QA Contact: |
|
Severity: |
normal
|
|
|
Priority: |
medium
|
|
|
Version: |
unspecified | |
|
Hardware: |
x86 (IA32) | |
|
OS: |
Linux (All) | |
|
Whiteboard: |
|
i915 platform:
|
|
i915 features:
|
|
Attachments: |
Output of Introspect method
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 16097 [details] Output of Introspect method When I call Introspect like this: gokcen@pardus src $ dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply /org/freedesktop/ConsoleKit/Session1 org.freedesktop.DBus.Introspectable.Introspect ConsoleKit returns an XML like the one a attached. Since there is unnecessary closing tags like </property>, it is not a well-formed XML. Tools like d-feet can not parse this XML and gives errors: ERROR:dbus.proxies:Introspect error on org.freedesktop.ConsoleKit:/org/freedesktop/ConsoleKit/Session1: dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: mismatched tag: line 84, column 6 Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 563, in msg_reply_handler reply_handler(*message.get_args_list(**get_args_opts)) File "/usr/lib/python2.5/site-packages/dfeet/dbus_introspector.py", line 60, in <lambda> reply_handler=lambda xml: self._query_introspect_data_cb(name, node, xml), File "/usr/lib/python2.5/site-packages/dfeet/dbus_introspector.py", line 70, in _query_introspect_data_cb data = _introspect_parser.process_introspection_data(xml) File "/usr/lib/python2.5/site-packages/dfeet/_introspect_parser.py", line 150, in process_introspection_data raise IntrospectionParserException('%s: %s' % (e.__class__, e)) dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: mismatched tag: line 84, column 6