Issue 36601 - Linked in pictures aren't saved as relative urls in xml documents
Summary: Linked in pictures aren't saved as relative urls in xml documents
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: helge.delfs
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-03 14:54 UTC by Daniel Boelzle [:dbo]
Modified: 2005-01-17 08:20 UTC (History)
1 user (show)

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


Attachments
patch for svtools/source/misc/urihelper 1.12.400.4 (6.31 KB, patch)
2004-11-22 15:26 UTC, Stephan Bergmann
no flags Details | Diff
Replacement for svtools/qa/test_URIHelper.cxx 1.5 (12.23 KB, text/plain)
2004-11-22 15:27 UTC, Stephan Bergmann
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Daniel Boelzle [:dbo] 2004-11-03 14:54:28 UTC
To reproduce:
1. create empty draw document
2. link in a picture
3. save document next to picture's directory e.g. as test.oop
=> saved content.xml has absolute file url to picture
Comment 1 Stephan Bergmann 2004-11-03 16:06:08 UTC
This is a Windows-only issue: when making the URL of the linked picture relative
during saving of the document, the drive letters of the fake, non-existing base
URL (file:///<path>/<XML-document>/content.xml) and the linked picture's URL
have different case, see HACK comment at line 321 of
svtools/source/misc/urihelper.cxx 1.12.400.3.
Comment 2 Stephan Bergmann 2004-11-22 15:26:36 UTC
Created attachment 19576 [details]
patch for svtools/source/misc/urihelper 1.12.400.4
Comment 3 Stephan Bergmann 2004-11-22 15:27:52 UTC
Created attachment 19577 [details]
Replacement for svtools/qa/test_URIHelper.cxx 1.5
Comment 4 Stephan Bergmann 2004-11-22 15:33:20 UTC
Once CWS sb19 is integrated, apply the attached
svtools_source_misc_urihelper.cxx_1.12.400.4.patch and test_URIHelper.cxx. 
Also, in udkapi/com/sun/star/uri/XUriReference.idl 1.4, make it clear in the
documentation of getAuthority that "//" is not included in the returned string.
Comment 5 Stephan Bergmann 2004-11-24 08:26:29 UTC
Fixed directly on CWS sb19 now.  Tests available in
svtools/qa/test_URIHelper.cxx (need to be executed within an OOo environment, as
they need a working UCB and other UNO services).
Comment 6 Stephan Bergmann 2004-12-15 12:35:27 UTC
.
Comment 7 Stephan Bergmann 2004-12-15 12:35:49 UTC
.
Comment 8 Stephan Bergmann 2004-12-15 12:36:12 UTC
sb->hde:  Please verify.
Comment 9 helge.delfs 2004-12-16 08:48:56 UTC
HDE: OK in CWS sb19
Comment 10 helge.delfs 2005-01-17 08:20:21 UTC
HDE: OK in src680m71s1