Bug 13975 - KDE apps: unknown mimetype application/vnd.ms-* messages
Summary: KDE apps: unknown mimetype application/vnd.ms-* messages
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA5-64-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2014-08-23 06:38 CEST by Bit Twister
Modified: 2015-07-28 23:02 CEST (History)
8 users (show)

See Also:
Source RPM: kdelibs4-4.14.5-1.mga5.src.rpm
CVE:
Status comment:


Attachments
log from console about kwrite (1.77 KB, text/plain)
2015-06-20 23:26 CEST, David GEIGER
Details

Description Bit Twister 2014-08-23 06:38:45 CEST
Description of problem:

Launch kwrite from a terminal and you get
kwrite(17203) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype
application/vnd.ms-excel.sheet.binary.macroEnabled.12
application/vnd.ms-excel.addin.macroEnabled.12
application/vnd.ms-powerpoint.slideshow.macroEnabled.12
application/vnd.ms-excel.sheet.macroEnabled.12
application/vnd.ms-powerpoint.presentation.macroEnabled.12
application/vnd.ms-word.template.macroEnabled.12
application/vnd.ms-excel.template.macroEnabled.12
application/vnd.ms-powerpoint.template.macroEnabled.12
application/vnd.ms-word.document.macroEnabled.12
application/vnd.ms-powerpoint.slide.macroEnabled.12

Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
Clean install of Mageia-5-alpha2-x86_64-DVD.iso. Default runlevel: 3
Package Group Selection screen has all package groups selected except
Other Graphical Desktops. non-free and tainted media are enabled.
Followed with:
urpmi --downloader wget --auto --auto-update
urpme --auto-orphans and reboot. 
 
Desktop: KDE   Theme: Oxygen    Window Decorations: plastik
Desktop effects are disabled. 

1. click up a terminal
2. kwrite .bashrc

I use xterm for my terminals.


Reproducible: 

Steps to Reproduce:
Comment 1 David Walser 2014-08-25 18:55:16 CEST
Is this related to the mailcap update?

CC: (none) => doktor5000

Comment 2 Florian Hubold 2014-08-25 21:01:56 CEST
(In reply to David Walser from comment #1)
> Is this related to the mailcap update?
Probably not, I've not got it on my box yet, and also get this output.


[user1@localhost ~]$ rpm -q mailcap
mailcap-2.0.4-30.mga4

[user1@localhost ~]$ kwrite .bashrc 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.addin.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12" 
kwrite(7972) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slide.macroEnabled.12" 
[user1@localhost ~]$


Apart from the output in terminal (which may often be pretty verbose for KDE in general) what is the impact of this? Is there any impact at all?

As there is no bug, as kwrite is running just fine, I'll close this one. Please remember, if there are a lot of error/warning/info message, but no error attached to them, then they are meaningless. 

Workaround: run 
kwrite .bashrc 2>/dev/null .

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 3 Florian Hubold 2014-08-25 21:05:13 CEST
See also
https://bbs.archlinux.org/viewtopic.php?id=185910
https://bugs.kde.org/show_bug.cgi?id=336388
https://bugs.mageia.org/show_bug.cgi?id=13883
In all of these such verbose messages with the exact same content can be seen. If you really want them to go away, please report that upstream at https://bugs.kde.org
Comment 4 Bit Twister 2014-08-26 00:31:40 CEST
(In reply to Florian Hubold from comment #2)
 
> Apart from the output in terminal (which may often be pretty verbose for KDE
> in general)

That has not been my experience in the past. Then again, I have disabled all debug output with  kdebugdialog --fullmode

> what is the impact of this? Is there any impact at all?

I thought so. It is pretty handy to see what was above the kwite command without having to scroll backup through the mime messages.

I also do not have the problem on Mageia 4 or 3

> As there is no bug, as kwrite is running just fine, I'll close this one.
> Please remember, if there are a lot of error/warning/info message, but no
> error attached to them, then they are meaningless. 

I have no idea what output messages are meaningful or not.

> Workaround: run 
> kwrite .bashrc 2>/dev/null .

Thank you very much. Since I use a script to call whatever the user's default editor is on the system, that is an easy fix for me.

I hope you do not mind. The bug is not an invalid so I changed it to will not fix and open a bug report at kde.org

I do thank you for all your time on Mageia.

Resolution: INVALID => WONTFIX

Comment 5 Florian Hubold 2014-08-26 22:19:02 CEST
Actually it's not wontfix but really invalid in this case, but anyway.

Should probably not be reported to KDE, but to freedesktop.org, against shared-mime-info:

[user1@localhost ~]$ kbuildsycoca4 --noincremental
kbuildsycoca4 running...
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.addin.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12" 
kbuildsycoca4(7254) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slide.macroEnabled.12"

 
[user1@localhost ~]$ rpm -qf /usr/share/mime/subclasses
shared-mime-info-1.3-1.mga5

[user1@localhost ~]$ rpm -qi shared-mime-info-1.3-1.mga5 | grep -i url
URL         : http://www.freedesktop.org/wiki/Software/shared-mime-info


FWIW, in cauldron KDE has always more things enabled in kdebugdialog, for released distros those should be disabled by default.
Comment 6 E Recio 2015-01-04 01:16:06 CET
This is related to the entries in the subclasses file. The files on the file system have "macroenabled" as name, but the subclasses file has "macroEnabled". Just update the subclasses file, and you should be fine. I've already opened up a bugzilla https://bugs.freedesktop.org/show_bug.cgi?id=88004

CC: (none) => emrecio

Comment 7 Florian Hubold 2015-01-04 02:30:17 CET
(In reply to E Recio from comment #6)
> Just update the subclasses file, and you should be fine.
> I've already opened up a bugzilla
> https://bugs.freedesktop.org/show_bug.cgi?id=88004

Thanks for the hint, will do :)

Assignee: bugsquad => doktor5000
Resolution: WONTFIX => (none)
Status: RESOLVED => REOPENED

Comment 8 Luc Menut 2015-01-04 12:31:55 CET
(In reply to E Recio from comment #6)
> This is related to the entries in the subclasses file. The files on the file
> system have "macroenabled" as name, but the subclasses file has
> "macroEnabled". Just update the subclasses file, and you should be fine.
> I've already opened up a bugzilla
> https://bugs.freedesktop.org/show_bug.cgi?id=88004

I'm not sure that "macroEnabled" in subclasses is wrong.
According to
http://technet.microsoft.com/en-us//library/ee309278%28v=office.12%29.aspx
http://blogs.msdn.com/b/vsofficedeveloper/archive/2008/05/08/office-2007-open-xml-mime-types.aspx
.macroEnabled.12 is the valid suffix for Office 2007 macro-enabled documents.

CC: (none) => lmenut

Comment 9 Florian Hubold 2015-02-21 09:40:41 CET
Has been reported upstream by the Fedora/RHEL KDE master: https://bugs.kde.org/show_bug.cgi?id=343468
Florian Hubold 2015-02-21 09:41:16 CET

See Also: (none) => https://bugs.freedesktop.org/show_bug.cgi?id=88004, https://bugs.kde.org/show_bug.cgi?id=343468

Comment 10 Rémi Verschelde 2015-03-10 19:40:44 CET
Locally I've run sed -i 's/macroEnabled/macroenabled/g' on /usr/share/mime/subclasses, I know it's not the proper fix since the bug is in KDE, but it's the easiest to implement that I know of.

freedesktop claims that mimetypes are case-insensitive anyway, so I guess there is no harm in making the mimetype lower-case in /usr/share/mime/subclasses for my personal usage. As for a more global bugfix, I don't know if that would be the correct approach. There hasn't been much discussion on the upstream KDE bug yet.

CC: (none) => remi

Rémi Verschelde 2015-03-10 19:41:17 CET

Summary: 5a2: kwrite unknown mimetype application/vnd.ms-* messages => KDE apps: unknown mimetype application/vnd.ms-* messages

Comment 11 Florian Hubold 2015-03-10 22:53:30 CET
Do you have some MS Office macro-enabled documents for testing?
They usually end in .xlsm (at least those are the most common at work).
They should also open up in recent OOo or Libreoffice versions.

Question is, if there is any change in their mimetype recognition.
Comment 12 Rémi Verschelde 2015-03-10 23:13:29 CET
Hm, doesn't look too good actually. At first it was working fine, but then I rebuilt the database with "update-mime-database /usr/share/mime". Now:
- my change to /usr/share/mime/subclasses got reverted
- dolphin sees xlsm files as application/zip...

I'll investigate more tomorrow, but I guess the workaround is not that inoffensive.
Comment 13 Rémi Verschelde 2015-05-12 10:37:39 CEST
I've found that Fedora has used a bandaid workaround for this issue, to make those warnings debug output: https://bugzilla.redhat.com/show_bug.cgi?id=1184918

Should we do the same? This issue is minor, but it's still pretty annoying and upstream does not seem to care much about it judging by the bug report.
Comment 14 Bit Twister 2015-05-12 11:24:35 CEST
(In reply to Rémi Verschelde from comment #13)
> I've found that Fedora has used a bandaid workaround for this issue, to make
> those warnings debug output:
> https://bugzilla.redhat.com/show_bug.cgi?id=1184918
> 
> Should we do the same?

PLEASE, please do the same. 

> This issue is minor, but it's still pretty annoying

Yep, I now have wrappers for gnumeric, kwrite, okular, evince to keep my terminal free of those messages.
Comment 15 Florian Hubold 2015-05-12 13:06:46 CEST
Added the workaround from Fedora: http://svnweb.mageia.org/packages?view=revision&revision=821936

@Luc: Any objections on pushing this to mga5, or shall we better wait until after release? Maybe you have some other small KDE patches to push, as this alone is not urgent and only a minor cosmetic fix.

Assignee: doktor5000 => lmenut

Comment 16 Samuel Verschelde 2015-06-06 15:26:50 CEST
Was the fix pushed in the end?
Comment 17 Rémi Verschelde 2015-06-06 15:43:40 CEST
Not yet.
Samuel Verschelde 2015-06-06 15:52:46 CEST

Whiteboard: (none) => MGA5TOO

Comment 18 David GEIGER 2015-06-20 23:26:11 CEST
Created attachment 6764 [details]
log from console about kwrite

Same issue here on a new mga5 fresh install when I open kwrite on console.


Mageia release 5 (Official) for x86_64
Kernel 3.19.8-desktop-3.mga5 on a 4-processor x86_64 / \l
Qt : 4.8.6
Plate-forme de développement de KDE : 4.14.5
kde4-config : 1.0

CC: (none) => geiger.david68210

Bit Twister 2015-07-01 11:10:17 CEST

CC: (none) => bittwister2

Comment 19 David GEIGER 2015-07-06 10:10:23 CEST
Luc what is the status for this bug? no advisory?


Tested mga5_64,

So I confirm that this bug is now fixed with the new update on kdelibs4-4.14.5-1.1.mga5, strange warning "unknown mimetypeapplication/vnd.ms-*macroEnabled" is gone.


[david@david ~]$ kwrite
[david@david ~]$
Comment 20 Luc Menut 2015-07-23 22:48:22 CEST
It's ready for QA, sorry for the delay.

Suggested advisory:
This kdelibs update removes annoying messages on standard error 'KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12" ...' .

References:
https://bugs.mageia.org/show_bug.cgi?id=13975
https://bugs.kde.org/show_bug.cgi?id=343468
https://bugzilla.redhat.com/show_bug.cgi?id=1184918


src.rpm:
kdelibs4-4.14.5-1.1.mga5.src.rpm

packages for i586:
kdelibs4-core-4.14.5-1.1.mga5.i586.rpm
kdelibs4-devel-4.14.5-1.1.mga5.i586.rpm
kdelibs4-handbooks-4.14.5-1.1.mga5.noarch.rpm
libkcmutils4-4.14.5-1.1.mga5.i586.rpm
libkde3support4-4.14.5-1.1.mga5.i586.rpm
libkdeclarative5-4.14.5-1.1.mga5.i586.rpm
libkdecore5-4.14.5-1.1.mga5.i586.rpm
libkdefakes5-4.14.5-1.1.mga5.i586.rpm
libkdesu5-4.14.5-1.1.mga5.i586.rpm
libkdeui5-4.14.5-1.1.mga5.i586.rpm
libkdewebkit5-4.14.5-1.1.mga5.i586.rpm
libkdnssd4-4.14.5-1.1.mga5.i586.rpm
libkemoticons4-4.14.5-1.1.mga5.i586.rpm
libkfile4-4.14.5-1.1.mga5.i586.rpm
libkhtml5-4.14.5-1.1.mga5.i586.rpm
libkidletime4-4.14.5-1.1.mga5.i586.rpm
libkimproxy4-4.14.5-1.1.mga5.i586.rpm
libkio5-4.14.5-1.1.mga5.i586.rpm
libkjs4-4.14.5-1.1.mga5.i586.rpm
libkjsapi4-4.14.5-1.1.mga5.i586.rpm
libkjsembed4-4.14.5-1.1.mga5.i586.rpm
libkmediaplayer4-4.14.5-1.1.mga5.i586.rpm
libknewstuff2_4-4.14.5-1.1.mga5.i586.rpm
libknewstuff3_4-4.14.5-1.1.mga5.i586.rpm
libknotifyconfig4-4.14.5-1.1.mga5.i586.rpm
libkntlm4-4.14.5-1.1.mga5.i586.rpm
libkparts4-4.14.5-1.1.mga5.i586.rpm
libkprintutils4-4.14.5-1.1.mga5.i586.rpm
libkpty4-4.14.5-1.1.mga5.i586.rpm
libkrosscore4-4.14.5-1.1.mga5.i586.rpm
libkrossui4-4.14.5-1.1.mga5.i586.rpm
libktexteditor4-4.14.5-1.1.mga5.i586.rpm
libkunitconversion4-4.14.5-1.1.mga5.i586.rpm
libkunittest4-4.14.5-1.1.mga5.i586.rpm
libkutils4-4.14.5-1.1.mga5.i586.rpm
libnepomuk4-4.14.5-1.1.mga5.i586.rpm
libnepomukquery4-4.14.5-1.1.mga5.i586.rpm
libnepomukutils4-4.14.5-1.1.mga5.i586.rpm
libplasma3-4.14.5-1.1.mga5.i586.rpm
libsolid4-4.14.5-1.1.mga5.i586.rpm
libthreadweaver4-4.14.5-1.1.mga5.i586.rpm

packages for x86_64:
kdelibs4-core-4.14.5-1.1.mga5.x86_64.rpm
kdelibs4-devel-4.14.5-1.1.mga5.x86_64.rpm
kdelibs4-handbooks-4.14.5-1.1.mga5.noarch.rpm
lib64kcmutils4-4.14.5-1.1.mga5.x86_64.rpm
lib64kde3support4-4.14.5-1.1.mga5.x86_64.rpm
lib64kdeclarative5-4.14.5-1.1.mga5.x86_64.rpm
lib64kdecore5-4.14.5-1.1.mga5.x86_64.rpm
lib64kdefakes5-4.14.5-1.1.mga5.x86_64.rpm
lib64kdesu5-4.14.5-1.1.mga5.x86_64.rpm
lib64kdeui5-4.14.5-1.1.mga5.x86_64.rpm
lib64kdewebkit5-4.14.5-1.1.mga5.x86_64.rpm
lib64kdnssd4-4.14.5-1.1.mga5.x86_64.rpm
lib64kemoticons4-4.14.5-1.1.mga5.x86_64.rpm
lib64kfile4-4.14.5-1.1.mga5.x86_64.rpm
lib64khtml5-4.14.5-1.1.mga5.x86_64.rpm
lib64kidletime4-4.14.5-1.1.mga5.x86_64.rpm
lib64kimproxy4-4.14.5-1.1.mga5.x86_64.rpm
lib64kio5-4.14.5-1.1.mga5.x86_64.rpm
lib64kjs4-4.14.5-1.1.mga5.x86_64.rpm
lib64kjsapi4-4.14.5-1.1.mga5.x86_64.rpm
lib64kjsembed4-4.14.5-1.1.mga5.x86_64.rpm
lib64kmediaplayer4-4.14.5-1.1.mga5.x86_64.rpm
lib64knewstuff2_4-4.14.5-1.1.mga5.x86_64.rpm
lib64knewstuff3_4-4.14.5-1.1.mga5.x86_64.rpm
lib64knotifyconfig4-4.14.5-1.1.mga5.x86_64.rpm
lib64kntlm4-4.14.5-1.1.mga5.x86_64.rpm
lib64kparts4-4.14.5-1.1.mga5.x86_64.rpm
lib64kprintutils4-4.14.5-1.1.mga5.x86_64.rpm
lib64kpty4-4.14.5-1.1.mga5.x86_64.rpm
lib64krosscore4-4.14.5-1.1.mga5.x86_64.rpm
lib64krossui4-4.14.5-1.1.mga5.x86_64.rpm
lib64ktexteditor4-4.14.5-1.1.mga5.x86_64.rpm
lib64kunitconversion4-4.14.5-1.1.mga5.x86_64.rpm
lib64kunittest4-4.14.5-1.1.mga5.x86_64.rpm
lib64kutils4-4.14.5-1.1.mga5.x86_64.rpm
lib64nepomuk4-4.14.5-1.1.mga5.x86_64.rpm
lib64nepomukquery4-4.14.5-1.1.mga5.x86_64.rpm
lib64nepomukutils4-4.14.5-1.1.mga5.x86_64.rpm
lib64plasma3-4.14.5-1.1.mga5.x86_64.rpm
lib64solid4-4.14.5-1.1.mga5.x86_64.rpm
lib64threadweaver4-4.14.5-1.1.mga5.x86_64.rpm

Hardware: x86_64 => All
Version: Cauldron => 5
Assignee: lmenut => qa-bugs
Source RPM: kate-4.13.97-1.mga5.src.rpm => kdelibs4-4.14.5-1.mga5.src.rpm
Whiteboard: MGA5TOO => (none)

David GEIGER 2015-07-24 22:28:27 CEST

Whiteboard: (none) => MGA5-64-OK

Comment 21 Rémi Verschelde 2015-07-25 11:21:38 CEST
Works fine on Mageia 5 64bit.
Dave Hodgins 2015-07-28 17:30:12 CEST

Keywords: (none) => validated_update
Whiteboard: MGA5-64-OK => MGA5-64-OK advisory
CC: (none) => davidwhodgins, sysadmin-bugs

Comment 22 Samuel Verschelde 2015-07-28 17:38:43 CEST
As discussed on IRC, un-validating until we have heard from at least a second person that would have installed the KDE update, since this is a lot of packages.

Keywords: validated_update => (none)

Comment 23 Dave Hodgins 2015-07-28 17:47:55 CEST
Revalidating, as I have installed the update and haven't seen any regressions.

Keywords: (none) => validated_update

Comment 24 Mageia Robot 2015-07-28 23:02:51 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0070.html

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.