Bug 143693 - LO should be able to load files from HTTP
Summary: LO should be able to load files from HTTP
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4 all versions
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-02 16:34 UTC by tripleo
Modified: 2023-03-27 04:53 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tripleo 2021-08-02 16:34:46 UTC
Description:
MS Word for years has allowed the direct import of files from the web. I think LO should allow this as well.

Steps to Reproduce:
1. Go to open dialog
2. Input a URL
3.

Actual Results:
Nothing happens

Expected Results:
It would be nice if this feature was implemnented. Along with support for .woff files and CSS stylesheets.


Reproducible: Always


User Profile Reset: No



Additional Info:
None.
Comment 1 Dmitrii A 2021-08-04 02:40:55 UTC
no repro in 

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: ac80ec817eb07c77a51bc0729985a473c734182e
CPU threads: 16; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL

Try to update to last version. If it doesn't help try:
- uninstall completely LO
- clean Windows registry with a tool like ccleaner or other
- download last version https://www.libreoffice.org/download/download/
- install brand new version
Comment 2 tripleo 2021-08-10 09:20:12 UTC
OK, some clarity:

* I am on Linux
* The GTK open dialog requires extra work (not much though) to manually input a filename (this has no bearing on LO)
* The "Open Remotes" feature has no option for regular HTTP.

I just built a dev version of LO and the UI is the same.

Therefore I don't think there is a way (at least on Linux, does it work on Windows?) to import a webpage into LO.
Comment 3 Heiko Tietze 2022-05-12 10:47:23 UTC
Usually you do Insert > Text from Document or open a local document via File > Open (and filter for HTML). In general I think these functionality should not be in focus since Writer is not an HTML editor.

Talking about import from other sources than locally it bears a security risk. But in fact I can just copy this URL and paste into the open dialog (at least on KDE using kf5 VCL) and get the bug loaded into Writer. => NAB (for Linux/KDE)
Comment 4 Regina Henschel 2022-05-12 12:08:53 UTC
(In reply to tripleo from comment #0)
> Description:
> MS Word for years has allowed the direct import of files from the web. I
> think LO should allow this as well.
> 
> Steps to Reproduce:
> 1. Go to open dialog

Do you use the Open-dialog of your operating system or that from LO? I use the Open-dialog from Windows.

> 2. Input a URL

For example https://wiki.documentfoundation.org/images/5/5c/Custom_Shape_Tutorial.odt

> 3.
> 
> Actual Results:
> Nothing happens

The above given example opens fine in Writer. You need to wait a little bit because you see nothing while the download is initializing. But than you get a "loading" progress bar.

If you use an URL like https://wiki.documentfoundation.org/User:Regina, it opens in Writer/Web with the known problem, that Writer/Web is no longer active maintained and a lot of modern HTML5 features are not supported.

> 
> Expected Results:
> It would be nice if this feature was implemnented. Along with support for
> .woff files and CSS stylesheets.

".woff" files is a different topic. Please look whether bug 140881 covers your problem. 
Problems with CSS and general improvement of HTML import/export are covered by bug 95861.
Comment 5 Timur 2022-05-17 11:50:46 UTC
Nobody reproduced as steps are not clear.
Remote file opens via File-Open and it works in Windows and in Linux with LO dialog (Options-General), so only problem is GTK3 dialog (Ctrl+L open folder location and doesn'r read a file). I'd say NotOurBug.
Please test more and explain.
Comment 6 tripleo 2022-05-17 21:00:09 UTC
(In reply to Timur from comment #5)
> Nobody reproduced as steps are not clear.

The steps are too simple not to be clear.

 1. Open dialog
 2. Enter URL

On Linux, this does not work.  It may be because on my system, it uses the GTK dialog.  Also, the "File > Open Remote..." dialog does not have an HTTP/HTML option -- it has Google Drive, Sharepoint, WebDAV and a bunch of corporate stuff.



(In reply to Heiko Tietze from comment #3)

> since Writer is not an HTML editor.

I am not looking for an HTML editor.  Given what I know about LO, I expect that certain parts of an HTML/CSS document can not and will not be implemented in ODT.  I am talking about an HTML import, specifically text and styles (mostly fonts and sizes and bold/italic, etc).

> Talking about import from other sources than locally it bears a security risk. > But in fact I can just copy this URL and paste into the open dialog (at least > on KDE using kf5 VCL) and get the bug loaded into Writer. => NAB (for Linux/KDE)

Not on GTK VCL.
Comment 7 Timur 2022-05-18 08:36:54 UTC
tripleo, we are now going around, beacuse you didn't address Comment 5. 
Again, it's not "File > Open Remote...", it's File -Open which doesn't work in GTK3 which is GTK problem, not LO. That works in LO dialog and in Windows. 
Can you accept that? Maybe report to GTK and write that report here ?
Comment 8 QA Administrators 2022-11-15 04:13:33 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2022-12-16 03:19:29 UTC Comment hidden (obsolete)
Comment 10 tripleo 2023-03-27 04:53:09 UTC
Try: https://web.archive.org/web/20090407010200/http://coding.derkeiler.com/Archive/Lisp/comp.lang.lisp/2006-04/msg01630.html

I can confirm the custom shape tutorial works.

I don't think it did at the time, or I thought it didn't because of the long delay in loading (I had a much slower net connection.)