https://bugs.freedesktop.org/show_bug.cgi?id=44196
Bug #: 44196
Summary: FILEOPEN: Open .html file into Calc adds absolute path
to relative HREF= URL
Classification: Unclassified
Product: LibreOffice
Version: LibO 3.4.4 release
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Status Whiteboard: BSA
Severity: normal
Priority: medium
Component: Spreadsheet
AssignedTo: [email protected]
ReportedBy: [email protected]
Problem description:
Gratuitous change hyperlink HREF= from relative to absolute on opening a .html
file.
Steps to reproduce:
0) Open Calc by clicking on desktop shortcut to <LibreOffice
3.4/program/scalc.exe>.
1) Both "Save URLs relative" boxes are checked in
Tools/Options/Load-Save/General.
2) Type "Text with HYPERLINK" into cell A1.
3) Select cell A1 and hi-lite HYPERLINK in Formula Toolbar.
4) Click hyperlink icon in Standard Toolbar and select DOCUMENT.
5) Type link.html in Path. Click APPLY and CLOSE.
6) Click SAVE and save file as File Name: abc and Type: HTML on the Desktop.
Choose "Keep Current Format". File "abc.html" is created.
7) Exit Calc using X in upper right corner.
8) Drag&drop abc.html onto a text editor (I use EditPlus)
9) See HREF="link.html" in the <A>...</A> directive.
NOTE: This behavior is what we expect since "link.html" was what was entered
in the hyperlink interaction above (#5).
10) Close the editor.
11) Drag&drop abc.html onto the Calc desktop shortcut.
12) OPTIONAL: Select cell A1 and hi-lite HYPERLINK in Formula Toolbar. Click
hyperlink icon in Standard Toolbar. OBSERVE: Path is now absolute, starting
with "C:".
13) Using SAVE AS, save the page/sheet as File Name: abc and Type: HTML & Keep
Current Format. Select "overwrite" to save the new abc.html over the previous
one.
14) Exit Calc using X in upper right corner.
15) Drag&drop abc.html into the text editor again.
16) See that HREF= is now:
HREF="file:///C:/Documents and Settings/username/Desktop/link.html"
17) It's now been changed to an **ABSOLUTE** path and the abc.html file can
only operate properly when it resides on the desktop. If it were moved (along
with "link.html") to another folder it would not be able to find "link.html"...
Platform (if different from the browser): WinXPpro V5.1 SP3
Browser: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs