After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 566048 - ldtp.getapplist() always throws an exception
ldtp.getapplist() always throws an exception
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp
1.4.0
Other All
: Normal normal
: ---
Assigned To: LDTP maintainers
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2008-12-30 12:44 UTC by Sandro Millien
Modified: 2009-01-23 05:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sandro Millien 2008-12-30 12:44:58 UTC
Please describe the problem:
When one call ldtp.getapplist() one get an exception.

Steps to reproduce:
In a python console type the following:
1. import ldtp
2. ldtp.getapplist()

Observe the exception.


Actual results:
An exception is thrown with following message:

<class 'ldtplib.ldtplibutils.LdtpExecutionError'>: 'Parsing XML error: not well-formed (invalid token): line 1, column 360'


Expected results:
A list of all currently running applications.

Does this happen every time?
Yes.

Other information:
/var/lib/python-support/python2.5/ldtp.py in getapplist()
   2818         if _responseStatus [0] != 0:
   2819             raise LdtpExecutionError ('getapplist failed: %s' % _responseStatus [1])
-> 2820         return parseobjectlist (_responseData [1])
   2821     except LdtpExecutionError, msg:
   2822         raise

/var/lib/python-support/python2.5/ldtp.py in parseobjectlist(xmldata)
    125             else:
    126                 print traceback.print_exc ()
--> 127         raise LdtpExecutionError ('Parsing XML error: ' + str (msg))
    128 
    129 def parsexml (xmlpacket):
Comment 1 Nagappan Alagappan 2009-01-23 05:57:32 UTC
Fixed in git. Thanks for reporting this. Please reopen, if still this bug exist.