Bug 111389 - Add support for .html format
Summary: Add support for .html format
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: ARM Android
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (Android)-Unsupported-formats
  Show dependency treegraph
 
Reported: 2017-08-05 03:46 UTC by vihsa
Modified: 2023-07-24 19:01 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 vihsa 2017-08-05 03:46:27 UTC
Description:
when i open .html file, it displays letters, symbols, numbers, etc.,  instead of content on 5.0, 5.1, 5.2, 5.3 alpha libreoffice viewer

Steps to Reproduce:
download and open EDB-35279-1.htmlhttps://opengrok.libreoffice.org/xref/core/sw/qa/core/data/html/pass/EDB-35279-1.html#

Actual Results:  
displays letters, symbols, numbers instead of content

Expected Results:
display content

fileopen test result:
5.0.0.0.alpha1+-ab465b9 garbage
5.1.0.0.alpha1+-1a6ec13 garbage
5.1.0.0.alpha1+-5b791ec garbage
5.2.0.0.alpha0+-f6a74ce garbage
5.3.0.0.alpha1+-4136757 garbage

os: android 5.1
device: lyf flame 3 [ ls-4001 ]


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Android 5.1; Mobile; rv:57.0) Gecko/57.0 Firefox/57.0
Comment 1 Michael Weghorn 2023-01-17 13:43:36 UTC
Is this request still relevant?
Supporting more file formats presumably also means that the size of the APK will increase (due to more services that will have to be included), so I tend to suggest focusing on those that are particularly relevant.

In addition, the mechanism to open a file in Android Viewer currently depends on the Android system identifying the proper MIME type, which probably isn't the case for most of the proprietary and not so frequently used file types. (So supporting these might need some "open any file, ignore file type" handling instead (possibly hidden behind a setting?).)
Comment 2 QA Administrators 2023-07-17 03:14:13 UTC Comment hidden (obsolete)
Comment 3 `{third: "Beedell", first: "Roke"}`{.JSON5} 2023-07-17 13:10:00 UTC Comment hidden (obsolete)
Comment 4 Michael Weghorn 2023-07-24 19:01:01 UTC
(In reply to third='beedell', first='roke', second='julian lockhart' from comment #3)
> I don't think this needs to be in needinfo. Implementation details probably
> can't be provided by the requester if they're not an LO developer. It's a
> fairly simple FR anyway, at least conceptually.
I agree that implementation details don't have to be provided by the requester.
My question from comment 1 is primarily "Is this use case actually (still) relevant for you?", since there appears to have been a mass-filing for pretty much every file format that the desktop version of LibreOffice supports. Since supporting all of these on Android comes at a cost (needs time to be implemented, needs more space on the phone, maybe up to the point that some app store limits are exceeded,...), I'd like to know which of the formats are actually relevant in practice so those can be focused on.

With that said, I just tested the scenario in this bug report

(In reply to vihsa from comment #0)
> Steps to Reproduce:
> download and open
> EDB-35279-1.htmlhttps://opengrok.libreoffice.org/xref/core/sw/qa/core/data/
> html/pass/EDB-35279-1.html#
> 
> Actual Results:  
> displays letters, symbols, numbers instead of content
> 
> Expected Results:
> display content

and opening that HTML file in Firefox or Chromium also just displays "garbage", and the file doesn't seem to actually be an HTML file:

$ file /tmp/EDB-35279-1.html 
/tmp/EDB-35279-1.html: data
$ file --mime-type /tmp/EDB-35279-1.html 
/tmp/EDB-35279-1.html: application/octet-stream


So, from what I can see, this is actually NOTABUG, given the file itself is broken.
If there's still a desire for HTML to be supported and that shouldn't work in general, I think that should be filed as a new report instead, so I'm closing this bug report as NOTABUG.