Issue 11624 - Insert Image -> link with file - relative paths corrupted sometimes
Summary: Insert Image -> link with file - relative paths corrupted sometimes
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC Windows 98
: P5 (lowest) Trivial (vote)
Target Milestone: ---
Assignee: h.ilter
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-02-19 09:05 UTC by sztejkat
Modified: 2007-03-24 14:41 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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.