2020-08-06 21:10:58 |
Alex A. D. |
bug |
|
|
added bug |
2020-08-06 21:15:01 |
Alex A. D. |
description |
For .html files `xdg-mime` reports wrong type. The culprit is the `"use strict"` phrase which is used in JavaScript. It should not mistake .html files for anything except of text/html !
STEPS TO REPRODUCE:
Run the following step by step in any folder:
1. $ echo "\"use strict\"" > index.html
2. $ xdg-mime query filetype index.html # -> application/x-perl
Platform:
Ubuntu 20.04.1 LTS (Focal Fossa)"
Linux version 5.4.0-42-generic (buildd@lgw01-amd64-038) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2))
xdg-utils: 1.1.3-2ubuntu1 |
For .html files `xdg-mime` reports wrong type. The culprit is the `"use strict"` phrase which is used in JavaScript. It should not mistake .html files for anything else except of text/html !
STEPS TO REPRODUCE:
Run the following step by step in any folder:
1. $ echo "\"use strict\"" > index.html
2. $ xdg-mime query filetype index.html # -> application/x-perl - this should be text/html!
Platform:
Ubuntu 20.04.1 LTS (Focal Fossa)"
Linux version 5.4.0-42-generic (buildd@lgw01-amd64-038) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2))
xdg-utils: 1.1.3-2ubuntu1 |
|
2020-08-06 21:21:20 |
Alex A. D. |
tags |
|
html xdg-mime xdg-open |
|
2020-08-06 21:23:46 |
Alex A. D. |
tags |
html xdg-mime xdg-open |
20.04 html kde kubuntu perl xdg-mime xdg-open |
|
2020-08-07 09:44:53 |
Sebastien Bacher |
affects |
xdg-utils (Ubuntu) |
shared-mime-info (Ubuntu) |
|
2020-08-07 09:44:53 |
Sebastien Bacher |
shared-mime-info (Ubuntu): importance |
Undecided |
Low |
|
2020-08-07 09:44:53 |
Sebastien Bacher |
shared-mime-info (Ubuntu): status |
New |
Invalid |
|
2020-08-12 16:41:12 |
Alex A. D. |
bug |
|
|
added subscriber Sebastien Bacher |
2020-09-21 18:54:52 |
Sebastien Bacher |
shared-mime-info (Ubuntu): status |
Invalid |
New |
|
2020-09-21 18:56:15 |
Sebastien Bacher |
shared-mime-info (Ubuntu): status |
New |
Incomplete |
|
2020-09-21 21:11:42 |
Alex A. D. |
attachment added |
|
xdg-mime query wrong result https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1890716/+attachment/5413048/+files/Screenshot_20200921_232318.png |
|
2020-09-22 20:29:56 |
Alex A. D. |
summary |
xdg-mime query filetype index.html reports wrong type |
kmimetypefinder5 *.html reports wrong type |
|
2020-09-22 21:28:18 |
Alex A. D. |
shared-mime-info (Ubuntu): status |
Incomplete |
Invalid |
|
2020-09-22 22:37:33 |
Kai Kasurinen |
shared-mime-info (Ubuntu): status |
Invalid |
New |
|
2020-09-22 22:37:48 |
Kai Kasurinen |
bug watch added |
|
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887709 |
|
2020-09-22 22:37:48 |
Kai Kasurinen |
bug task added |
|
shared-mime-info (Debian) |
|
2020-09-22 22:38:55 |
Kai Kasurinen |
summary |
kmimetypefinder5 *.html reports wrong type |
misidentifies .html file as Perl script when it contains JavaScript "use strict" |
|
2020-09-22 22:39:32 |
Kai Kasurinen |
bug watch added |
|
https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/80 |
|
2020-09-22 22:39:32 |
Kai Kasurinen |
bug task added |
|
shared-mime-info |
|
2020-09-22 23:07:44 |
Alex A. D. |
bug task added |
|
kde-cli-tools (Ubuntu) |
|
2020-09-23 09:49:27 |
Sebastien Bacher |
shared-mime-info (Ubuntu): status |
New |
Invalid |
|
2020-09-23 10:32:31 |
Kai Kasurinen |
shared-mime-info (Ubuntu): status |
Invalid |
New |
|
2020-09-23 15:26:55 |
Sebastien Bacher |
shared-mime-info (Ubuntu): status |
New |
Fix Committed |
|
2020-09-24 15:02:59 |
Bug Watch Updater |
shared-mime-info (Debian): status |
Unknown |
Confirmed |
|
2021-05-18 12:40:22 |
Kai Kasurinen |
affects |
kde-cli-tools (Ubuntu) |
qtbase-opensource-src (Ubuntu) |
|
2021-05-18 13:40:38 |
Kai Kasurinen |
qtbase-opensource-src (Ubuntu): status |
New |
Invalid |
|
2021-05-18 13:41:40 |
Kai Kasurinen |
shared-mime-info (Ubuntu): status |
Fix Committed |
Fix Released |
|
2022-05-20 15:54:58 |
Bug Watch Updater |
shared-mime-info: status |
Unknown |
Fix Released |
|