After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 531239 - ogg files are not assigned the correct mimetype
ogg files are not assigned the correct mimetype
Status: RESOLVED NOTGNOME
Product: glib
Classification: Platform
Component: gio
2.16.x
Other All
: Normal normal
: ---
Assigned To: Jamie McCracken
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2008-05-03 15:48 UTC by Zeeshan Ali
Modified: 2008-06-30 04:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zeeshan Ali 2008-05-03 15:48:46 UTC
Please describe the problem:
The IANA registred mimetype for all kinds of ogg files is "application/ogg", however tracker reports the mimetype of ogg files to be "audio/x-vorbis+ogg".

References:

http://www.iana.org/assignments/media-types/
http://www.rfc-editor.org/rfc/rfc3534.txt

Steps to reproduce:



Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Urho Konttori 2008-05-04 16:10:47 UTC
Based on this:

http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions

" 
.ogg - audio/ogg

    * Ogg Vorbis I Profile
    * .ogg applies now for Vorbis I files only
    * .ogg has more recently also been used for Ogg FLAC and for Theora, too — these uses are deprecated now in favor of .oga and .ogv respectively
    * has been defined in RFC 3534 http://www.ietf.org/rfc/rfc3534.txt for application/ogg, so rfc 3534 will be re-defined 

RATIONALE: .ogg has traditionally been used for Vorbis I files, in particular in HW players, hence it is kept for backwards-compatibility 
"

Seems like audio/ogg and application/ogg are both correct.
Comment 2 Zeeshan Ali 2008-05-04 16:41:03 UTC
Thanks for your input Urho!

> Seems like audio/ogg and application/ogg are both correct.

  Yeah! seems so but not "audio/ogg+vorbis" which is what tracker is reporting, unless i missed something in that document you referred to?
Comment 3 Urho Konttori 2008-05-04 17:07:01 UTC
Nope, I'm not saying that all is well. Just reported that those two should be ok. 
Comment 4 Zeeshan Ali 2008-06-29 20:05:17 UTC
Changing the Product to "glib" since the results can be reproduced with the following GIO example code:

<ValaCode>
        File file = File.new_for_uri (uri);

        weak FileInfo file_info;

        try {
            file_info = file.query_info (FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
                                         FileQueryInfoFlags.NONE,
                                         null);
        } catch (Error error) {
           ...
        }

        weak string content_type = file_info.get_content_type ();
        weak string mime = g_content_type_get_mime_type (content_type);
</ValaCode>

  Where 'uri' is a URI to an ogg vorbis file.
Comment 5 Matthias Clasen 2008-06-30 04:42:54 UTC
This bug needs to be reported against the shared-mime-info product in bugs.freedesktop.org