Uploaded image for project: 'VYSPER'
  1. VYSPER
  2. VYSPER-265

XMLTokenizer does not keep state across parsed IoBuffers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.7
    • core protocol
    • Using Vysper for creating XMPP client based on Java NIO.

    Description

      When receiving a large Stanza, some of the XML tokens
      are not parsed properly. Specifically, tag names gets broken (i.e. instead of "<item ...>" i see "<tem ...>").

      The XMLTokenizer does not keep state across two different IoBuffers that the XMLParser is parsing during stanza decoding.
      It currently only keeps the last position in the tokenized IoBuffer, but when a new IoBuffer is tokenized,
      the previous partial token content is lost.

      Attachments

        1. tokenizer_patch.txt
          4 kB
          Eilon Yardeni

        Activity

          People

            niklas Niklas Therning
            eyardeni Eilon Yardeni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: