Description: Recently i upgraded from 4.3 to the last stable version. 5.3.7.2 I an used to doing the following: - Create an ODT document - Create an HTML Link - Edit the link manually by replacing it with a relative path - Save the document - Save as to HTML After this, the url is lost. If i then open the document with quanta, a text-based html editor, then the url is an empty string: "" This can be repeated, Waht is remarcable, is that already existing html links are not affected during the export to html. Steps to Reproduce: - Create an ODT document - Create an HTML Link - Edit the link manually by replacing it with a relative path (for upload) - Save the document - Save as to HTML Actual Results: The links has no url Expected Results: The url should have been preserved Reproducible: Always User Profile Reset: No OpenGL enabled: Yes Additional Info: [Information automatically included from LibreOffice] Locale: en-US Module: TextDocument [Information guessed from browser] OS: Linux (All) OS is 64bit: no User-Agent: Mozilla/5.0 (X11; Linux i686; rv:57.0) Gecko/20100101 Firefox/57.0
Created attachment 138748 [details] Example ODT Open the document Search for "boeken over vaccinatie" Edit the URL file:///home/hans/data/web/christelijke-antwoorden.nl/Books/Index-Vaccinatie.html Change it to "../Books/Index-Vaccinatie.html" Save the doc, save it to html check the resulting document. In my case the relative path is an existing location so that might affect the result.
I treid to reproduce it with Windows and LO 5.4.4. I opened your attachment and saved it as html. I opened it with Firefox and the URL was still there. So could it be a bug of your html editor? What results do you get with other editors? And of course, perhaps it's only a LINUX problem. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the problem still exists in with other editors. I used Version: 5.4.4.2 (x64) Build-ID: 2524958677847fb3bb44820e40380acbe820f960 CPU-Threads: 4; BS: Windows 6.19; UI-Render: Standard; Gebietsschema: it-IT (de_DE); Calc: group
Hi, i repeated the test and opened the html with kedit, the same result. Then i repeated the test om my W10 laptop wich has a slightly older version of LOffice, again the same result. I creates some screenshots where >=20 are made on windows See the attachments
Created attachment 138751 [details] Screenshots on linux and W10
Only seen with "Save as", "Export" works correctly. Luckily it is a regression as it works in 3.6. Arch Linux 64-bit Version: 6.1.0.0.alpha0+ Build ID: 2d8f17565ebe867210f5769851d91b2e7b612a8f CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded Built on January 27th 2018 Arch Linux 64-bit Version 3.6.7.2 (Build ID: e183d5b)
Using steps from comment 1, bisected to https://cgit.freedesktop.org/libreoffice/core/commit/?id=0706b5756e06b7773a78e3046a47efc2c81d92b1 commit 0706b5756e06b7773a78e3046a47efc2c81d92b1 (patch) tree 20f29c5e5c4cd4d12af870994312cf38f98b1736 parent 87a5cf7db1f070cbc4a674a1c12c805a2c950856 (diff) tdf#76291 write encoded URL as href in html output INetURLObject class is used to create correctly encoded URL Change-Id: Icc9e71e848fd8a0b487f74232b9ad3e7ddde50b4 Done using bibisect-win32-5.0 Adding Vasily to CC
Adding Cc: to Vasily Melenchuk
Dear hans.van.buitenen, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The error has been reproduced on LibreOffice 6.2.2.2 (Linux) See https://youtu.be/_8Hq7QHq780
Tested on LibreOffice 6.3.0.1 (Linux) Same behaviour See https://youtu.be/QgRHpas-rxU Version: 6.3.0.1 Build ID: 41ac97386aba908b6db860cfb4cfe2da871886ae CPU threads: 2; OS: Linux 4.9; UI render: default; VCL: gtk3; Locale: en-US (en_US.UTF-8); UI-Language: en-US Calc: threaded
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/599da3fa69805ebf8dee4517855fd8706e19d11d tdf#114769: sw html export: better handling for relative URLs It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/184a9eec62058dcbe185d74cfd40a3772d3b801d tdf#114769: sw html export: better handling for relative URLs It will be available in 7.4.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/f5003b9b1b44a16e28b1c3080d11347e5b365e1e tdf#114769: sw html export: better handling for relative URLs It will be available in 7.3.7. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.