Bug 45248

Summary: insertDocumentFromURL doesn't insert RTF files at cursor position
Product: LibreOffice Reporter: Simon Kornblith <simon>
Component: WriterAssignee: Miklos Vajna <vmiklos>
Status: CLOSED DUPLICATE    
Severity: normal CC: jbfaure
Priority: medium    
Version: 3.5.0 RC1   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 37361    

Description Simon Kornblith 2012-01-25 19:51:52 UTC
In LibreOffice 3.5rc1 (but not LibreOffice 3.4), calling insertDocumentFromURL on a TextCursor always inserts RTF documents at the end of the current document, instead of inserting them at the TextCursor location. This can be seen both in the GUI and in code making use of this API directly. This does not happen when inserting odt documents.

While the below STR do not seem particularly severe, this breaks our extension (Zotero LibreOffice Integration), which uses insertDocumentFromURL to insert a bibliography at a specified cursor position. We have an installed base of >18,000.

STEPS TO REPRODUCE:
1. Create an RTF document with some text in it (document A).
2. Type some text into a new document (document B).
3. Move the cursor to the beginning of document B.
4. Use Insert->File to insert document A into document B. Instead of appearing at the cursor position, document B appears at the end.
Comment 1 Jean-Baptiste Faure 2012-01-25 21:43:36 UTC
I reproduce with LO 3.5.0 rc2+ under Ubuntu 11.10.
Maybe related to bug 43869 ?

Miklos : do you confirm ? Please feel free to reassign if you can't handle this bug.

Best regards. JBF
Comment 2 Miklos Vajna 2012-01-26 01:51:58 UTC

*** This bug has been marked as a duplicate of bug 43869 ***
Comment 3 Jean-Baptiste Faure 2012-03-21 12:29:43 UTC
closing