Issue 11624

Summary: Insert Image -> link with file - relative paths corrupted sometimes
Product: Writer Reporter: sztejkat <sztejkat>
Component: codeAssignee: h.ilter
Status: CLOSED IRREPRODUCIBLE QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P5 (lowest) CC: issues, oooqa
Version: OOo 1.0.1Keywords: oooqa
Target Milestone: ---   
Hardware: PC   
OS: Windows 98   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description sztejkat 2003-02-19 09:05:42 UTC
I have inserted a .bmp file, via Insert->Graphics->From File->Link to file.
Then, from time to time (I'm not able to reproduce it on requested, but i 
happened about 5 times up to now) when I open an .sxw document and save it, 
paths to image files are not resolved properly. Once saved, wrong relative 
paths are stored. 
 Ex:
  files: c:/../manual/pp/chapter1.sxw
         c:/../manual/main.sxg
         c:/../manual/pp/image.bmp
  proper path: ../image.bmp 
  improper path, after bug happens : ../pp/image.bmp

It happens only, if I use main document (.sxg) and double click in navigator to 
open end edit chapter file (propably because chapter document and main document 
are in different directories).
 Workaround:
  Thanks to hml format OpenOffice uses it is easy to unsip .sxw, open 
content.xml in text editor and automatically replace improper paths with proper 
one.
Comment 1 prgmgr 2003-06-20 17:01:02 UTC
Thank you for using and supporting OOo.

Can you reproduce this problem consistently in 1.0.3.1?
Comment 2 mci 2003-10-16 17:05:05 UTC
set to worksforme...
Comment 3 mci 2003-10-16 17:05:36 UTC
closing due to long inactivity...
Comment 4 magi 2007-03-24 13:37:13 UTC
Please reopen, this still occurs in OOo 2.2rc3.

Last time I noticed it was after I had system crash in my computer and had to
recover the Writer document. After recovery, all images had "/home/magi"
replaced with "..".

My default path is "/home/magi/texts/", so maybe the ".." is an attempt to
change to a path relative to that. I get many paths such as
"file:///../texts/image.png".

For example, original path:
  file:///home/magi/data/oo-web/fi/www/kuvat/ooo2.0-half.png

After crash and recovery:
  file:///../data/oo-web/fi/www/kuvat/ooo2.0-half.png

Bug #70310 had similar problems after update.
Comment 5 magi 2007-03-24 14:41:55 UTC
Opened issue #75705, which is possibly a related problem.