Apache OpenOffice (AOO) Bugzilla – Issue 36601
Linked in pictures aren't saved as relative urls in xml documents
Last modified: 2005-01-17 08:20:21 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
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.
Created attachment 19576 [details] patch for svtools/source/misc/urihelper 1.12.400.4
Created attachment 19577 [details] Replacement for svtools/qa/test_URIHelper.cxx 1.5
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.
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).
.
sb->hde: Please verify.
HDE: OK in CWS sb19
HDE: OK in src680m71s1