Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#26 closed defect (fixed)

SAX reader is unable to read data in incremental mode

Reported by: vadim.godunko Owned by: somebody
Priority: blocker Milestone: 0.0.6
Component: Matreshka - XML Processor Version:
Keywords: Cc:

Description

To reproduce Test_Input_Source must be written and for sequential call to its Read subprogram it must:

  • returns below string for first call:
    <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2626941369' from='jabber.ru' version='1.0' xml:lang='ru'>
    
  • returns empty string for second call
  • returns below string for third call:
    <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
    

Test driver must creates SAX_Simple_Reader, SAX_Events_Writer and Test_Input_Source objects; sets up reader in incremental mode and calls reader two times. Test is passed when SAX_Events_Writer reports expected sequence of SAX events.

Change History (9)

comment:1 by vadim.godunko, 10 years ago

Component: Matreshka - LeagueMatreshka - XML
Priority: majorblocker

comment:2 by vadim.godunko, 10 years ago

(In [935]) Renaming, reformatting and bug fixes for test.

Add to build system.

Refs #26.

comment:3 by vadim.godunko, 10 years ago

(In [940]) Fix bug in test.

Refs #26.

comment:4 by vadim.godunko, 10 years ago

(In [943]) Reset current position to base position to restart scanning on next
round when end of chunk of data is detected.

Refs #26.

comment:5 by vadim.godunko, 10 years ago

(In [944]) Reorganize test.

Refs #26.

comment:6 by vadim.godunko, 10 years ago

(In [945]) Remove spaces at the end of line in expected data.

Refs #26.

comment:7 by vadim.godunko, 10 years ago

(In [946]) Add special circuite to handle end of tag sequences in incremental mode
to allows to application to process start/end/empty tags immidiately
when data is readed.

Refs #26.

comment:8 by vadim.godunko, 10 years ago

Resolution: fixed
Status: newclosed

comment:9 by vadim.godunko, 10 years ago

Milestone: 0.1
Note: See TracTickets for help on using tickets.