Apache OpenOffice (AOO) Bugzilla – Issue 88291
OOo locks source file of linked images
Last modified: 2013-08-07 14:43:03 UTC
- Open Writer, and add a linked image (Insert > Picture > From file..., Link option checked). - Save and close the document. - Reopen the document, and try to rename the linked image from Explorer. - It is not possible, because the image is locked by soffice.bin process. It seems that doesn't happen in earlier versions. Thank you
Yes, it works as described. If this is a change, it seems to be what should happen. Don't believe it's a bug. Objects used in open documents should be locked.
This change have been introduced with version 2.4. With 2.1, 2.2, 2.3 the linked images wasn't locked from the document. Now if i want to replace the image, i can't before that all the users that have opened the document exit from it.
I cannot believe, that the behavior is desired / designed. At least in older builds it was not the case and also in OO Draw it is not the case. The sense of linked graphics is to have a source file and to make changes to the source file - and how to change if it is locked ???
MRU->OD: right after inserting the linked picture into document, source file is not already locked. Save the document and reopen -> see that the source file is locked now. Was not the case in OO 2.3.1.
Further investigation with TKR is needed
issue accepted. Investigation with TKR reveals that an internally used input stream of the image file is not closed after its content is read.
fixed in cws sw30bf06 - changed files: /sw/source/core/graphic/ndgrf.cxx, 1.45.86.1 /sfx2/inc/sfx2/linksrc.hxx, 1.3.76.1 /sfx2/inc/sfx2/lnkbase.hxx, 1.3.76.1 /sfx2/source/appl/linksrc.cxx, 1.11.76.1 /sfx2/source/appl/lnkbase.cxx, 1.13.76.1
OD->MRU: Checked in internal installation set of cws sw30bf06 - please verify.
Verified in cws sw30bf06
Checked in DEV300m24.