[LDTP-Dev] [Bug 550645] xmlpacket string seems be trimed somewhere

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Sep 3 21:29:18 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=550645

  LDTP | ldtp | Ver: 1.2.0

lavi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         OS/Version|Windows                     |Linux
         Resolution|                            |FIXED
            Version|unspecified                 |1.2.0




------- Comment #1 from lavi  2008-09-04 04:29 UTC -------
check the string before return:


            if peek_flag != 0:
                _pattern = re.compile ('\<\?xml')
                _searchObj = re.search (_pattern, _responsePacket)
                _finalPacket = _responsePacket[_searchObj.start () :]
                _responsePacket = _finalPacket
                # In some cases, the package received was not same as got from
STRING
                if _packetSize != len(_responsePacket):
                    if _ldtpDebugMore:
                        print 'Received invalid size of Packet',
_responsePacket
                    return None
                # _recvLck.release ()
                return _responsePacket


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=550645.


More information about the LDTP-dev mailing list