Bug 85649 - Insert -> File should detect file type, suggestions for improvement
Summary: Insert -> File should detect file type, suggestions for improvement
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Insert-File-Content
  Show dependency treegraph
 
Reported: 2014-10-30 13:38 UTC by Geoffrey
Modified: 2017-09-22 07:19 UTC (History)
1 user (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 Geoffrey 2014-10-30 13:38:00 UTC
If you click Insert -> File, several things can happen:
* You are lucky. Text is imported from a file (this is the intended use case, I believe).
* You are semi-lucky. LibreOffice does not freeze and it reports an error: "File cannot be loaded". The only option you have is clicking OK here.
* You are unlucky. LibreOffice freezes for a long time (this can happen with big files). Actually you have to kill the process.

It should not try to import EXE, ZIP or JAR files. Alternatively, a hyperlink can be created to the resource instead of embedding it.

Also, this option should do the same as Insert -> Image if you select an image file.
Comment 1 Maxim Monastirsky 2014-10-30 21:25:38 UTC
Hi Geoffrey,

(In reply to Geoffrey from comment #0)
> * You are semi-lucky. LibreOffice does not freeze and it reports an error:
> "File cannot be loaded". The only option you have is clicking OK here.
Unfortunately without clear reproduction steps (and preferably a file that triggers this error), we can't do much with these claims. Setting as NEEDINFO until more information is provided.

> * You are unlucky. LibreOffice freezes for a long time (this can happen with
> big files). Actually you have to kill the process.
> 
> It should not try to import EXE, ZIP or JAR files.
This is not specific to this menu item. See in Bug 80038 what could happen if you try to open EXE file.

> Alternatively, a
> hyperlink can be created to the resource instead of embedding it.
This is an interesting idea, however I'm not sure how such hyperlink could be useful. And anyway that probably not what a user expect to happen when using this menu item.

> Also, this option should do the same as Insert -> Image if you select an
> image file.
In 4.4 this menu renamed to "Document..", so there should be no more confusion in this regard.
Comment 2 Adolfo Jayme 2015-04-16 15:44:45 UTC
> > * You are semi-lucky. LibreOffice does not freeze and it reports an error:
> > "File cannot be loaded". The only option you have is clicking OK here.
> Unfortunately without clear reproduction steps (and preferably a file that
> triggers this error), we can't do much with these claims. Setting as
> NEEDINFO until more information is provided.

Geoffrey: will you provide the requested file and information, or shall we close this bug as invalid?
Comment 3 Geoffrey 2015-04-16 18:11:30 UTC
Closed as invalid.