Ticket #317 (new defect)
Duplicate text fragments in client's copy
|Reported by:||okhotin||Owned by:||armin|
When a server has a document with many changes and a client subscribes to this document, sometimes (not always) it happens that the client obtains a larger document than the one on the server. The client's copy has some fragment duplicated, while the server's copy remains correct. The client ignores the loss of synchronization, and if the user tries to modify parts of the document below the duplicated fragment, these modifications are applied to wrong places in the server's copy.
This was observed on Gobby server and client versions 0.4.3--0.4.5 running on Windows XP SP2
* If the client is restarted and reconnected to the server, another attempt to subscribe to the same document sometimes results in the duplication of a different fragment. Sometimes the client is able to load a correct copy.
* If the session is saved on the server, it does not contain any duplicate blocks. If the server is restarted from this file, the session is correctly restored. However, the client still has the same problems when connecting to the restarted server.
* If there are no marked changes in the document (that is, it was just opened from a plain text file) the client always connects correctly.
* Sample saved server's and client's sessions demonstrating this behaviour are available upon request (these are 150KB LaTeX files of a research paper).