RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1678448 - Invalid syntax in /usr/share/applications/org.gnome.font-viewer.desktop [RHEL 7]
Summary: Invalid syntax in /usr/share/applications/org.gnome.font-viewer.desktop [RHEL 7]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: desktop-file-utils
Version: 7.6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 1564650
Blocks: 1727111
TreeView+ depends on / blocked
 
Reported: 2019-02-18 19:15 UTC by Paul Gozart
Modified: 2023-09-07 19:44 UTC (History)
15 users (show)

Fixed In Version: shared-mime-info-1.8-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1564650
Environment:
Last Closed: 2020-03-31 19:39:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 105785 0 None None None 2019-02-18 19:18:56 UTC
Red Hat Bugzilla 1564650 0 unspecified CLOSED Invalid syntax in /usr/share/applications/org.gnome.font-viewer.desktop 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2020:1021 0 None None None 2020-03-31 19:39:39 UTC

Description Paul Gozart 2019-02-18 19:15:38 UTC
+++ This bug was initially created as a clone of Bug #1564650 +++

Description of problem:
/usr/share/applications/org.gnome.font-viewer.desktop is causing errors while updating desktop database:

sudo update-desktop-database 
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/ttf" is an invalid MIME type ("font" is an unregistered media type)
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/otf" is an invalid MIME type ("font" is an unregistered media type)


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

gnome-font-viewer-3.28.0-1.fc28.x86_64

How reproducible:

run: sudo update-desktop-database

Steps to Reproduce:
1. install gnome-font-viewer if not present
2. run update-desktop-database (as root)

Actual results:
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/ttf" is an invalid MIME type ("font" is an unregistered media type)
Error in file "/usr/share/applications/org.gnome.font-viewer.desktop": "font/otf" is an invalid MIME type ("font" is an unregistered media type)


Expected results:
No errors all desktop files should have valid syntax

Additional info:

--- Additional comment from Fedora Update System on 2018-04-09 16:07:18 MDT ---

desktop-file-utils-0.23-8.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d3ff7cabfc

--- Additional comment from Fedora Update System on 2018-04-09 16:07:32 MDT ---

desktop-file-utils-0.23-8.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b931933ce3

--- Additional comment from Fedora Update System on 2018-04-09 16:07:41 MDT ---

desktop-file-utils-0.23-8.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7b617c869f

--- Additional comment from Milan Zink on 2018-04-10 09:03:09 MDT ---

desktop-file-utils-0.23-8 works fine

bash-4.4$ sudo update-desktop-database
bash-4.4$ 

No errors

bash-4.4$ grep MimeType /usr/share/applications/org.gnome.font-viewer.desktop
MimeType=application/x-font-ttf;application/x-font-pcf;application/x-font-type1;application/x-font-otf;font/ttf;font/otf;

--- Additional comment from Adam Williamson on 2018-04-10 11:50:01 MDT ---

hadess: d'oh, dunno why I typed the wrong thing in the component box. :P thanks!

--- Additional comment from Rex Dieter on 2018-04-10 12:22:16 MDT ---



--- Additional comment from Fedora Update System on 2018-04-10 14:49:42 MDT ---

desktop-file-utils-0.23-8.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b931933ce3

--- Additional comment from Fedora Update System on 2018-04-10 15:15:09 MDT ---

desktop-file-utils-0.23-8.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-7b617c869f

--- Additional comment from Fedora Update System on 2018-04-10 16:51:29 MDT ---

desktop-file-utils-0.23-8.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d3ff7cabfc

--- Additional comment from Fedora Update System on 2018-04-14 20:36:42 MDT ---

desktop-file-utils-0.23-8.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

--- Additional comment from Fedora Update System on 2018-04-15 08:45:26 MDT ---

desktop-file-utils-0.23-8.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

--- Additional comment from Fedora Update System on 2018-04-17 19:03:34 MDT ---

desktop-file-utils-0.23-8.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 1 Paul Gozart 2019-02-18 19:18:57 UTC
Can we get this fix added to the next RHEL release please?  This is requested for a Red Hat TAM customer.  Thanks!

Comment 4 Pavlin Georgiev 2019-09-03 06:28:39 UTC
TEST SETUP 1
Distro: RHEL 7.6
Component version:
  desktop-file-utils-0.23-1.el7
  shared-mime-info-1.8-4.el7


TEST PROCEDURE 1
1. Install gnome-font-viewer
2. Update the desktop database when logged as root:
   # update-desktop-database
The bug appears.

Comment 5 Pavlin Georgiev 2019-09-03 06:29:46 UTC
TEST SETUP 2
Distro: RHEL 7.7
Component version:
  desktop-file-utils-0.23-2.el7
  shared-mime-info-1.8-4.el7


TEST PROCEDURE 2
1. Download and install Brew build shared-mime-info-1.8-5.el7:
   https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=948974
2. Repeat the previous testing procedure. 
The bug does NOT appear.

Comment 6 Pavlin Georgiev 2019-09-03 06:30:21 UTC
RESULT
Upgrading component: desktop-file-utils
    from: 0.23-1.el7
      to: 0.23-2.el7
Upgrading component: shared-mime-info
    from: 1.8-4.el7
      to: 1.8-5.el7
have fixed the bug.

Comment 8 errata-xmlrpc 2020-03-31 19:39:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1021


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