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 559146 - totem-plparser parsing error on .asx files: "couldn't be opened in _get_mime_type_with_data: 'Operation not supported'"
totem-plparser parsing error on .asx files: "couldn't be opened in _get_mime_...
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: http backend
1.0.x
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-11-03 17:22 UTC by João Walter Bruno Filho
Modified: 2014-11-05 12:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description João Walter Bruno Filho 2008-11-03 17:22:32 UTC
Please describe the problem:
Looks like a plparse problem when dealing with .asx file or mimetype. I'm
following the script to test (plparse.py) and the output of its execution. In
an Mandriva 2008.1 image it works fine (totem-pl-parser-2.22.1-3mdv2008.1). 

I'm using a Mandriva 2009.0 with default packages (updated) installed. 

#plparse.py
import totem.plparser
import gobject

url = "http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx"
parser = totem.plparser.Parser()
parser.set_property('recurse', True)
parser.set_property('debug', True)

def parsed(parser, urls):
    print '>>>>', parser, urls

def entry_parsed(parser, foo, bar):
    print '<<<<<<<<<<', foo, bar

parser.connect('playlist-ended', parsed)
parser.connect('entry-parsed', entry_parsed)

print parser.parse(url, False)

loop = gobject.MainLoop()
loop.run()
#end plparse.py



Steps to reproduce:
1. run python plparser.py
2. see output


Actual results:
2009.0: output 
# python plparse.py
_get_mime_type_for_name for 'http://www.radios.com.br/asx/102braga-br.asx'
returned 'audio/x-ms-asx'
URL 'http://www.radios.com.br/asx/102braga-br.asx' is dual type
'audio/x-ms-asx'
URL 'http://www.radios.com.br/asx/102braga-br.asx' couldn't be opened in
_get_mime_type_with_data: 'Operation not supported'
<enum TOTEM_PL_PARSER_RESULT_UNHANDLED of type TotemPlParserResult>


Expected results:
2008.1: output
#python /home/jwbruno/tmp/plparse.py
_get_mime_type_for_name for
'http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx' returned
'audio/x-ms-asx'
URL 'http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx' is dual type
'audio/x-ms-asx'
URL 'http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx' was opened
successfully in _get_mime_type_with_data:
_get_mime_type_for_name for
'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' returned
'application/octet-stream'
URL 'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' was opened
successfully in _get_mime_type_with_data:
_get_mime_type_with_data for
'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' returned
'video/x-ms-asf'
URL 'http://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000' is dual type
'video/x-ms-asf'
<<<<<<<<<< mmsh://wmscr1.dr.dk/e02ch11m?wmcontentbitrate=300000&MSWMExt=.asf
<gpointer at 0x820e800>
_get_mime_type_for_name for
'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' returned
'application/octet-stream'
URL 'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' was opened
successfully in _get_mime_type_with_data:
_get_mime_type_with_data for
'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' returned
'video/x-ms-asf'
URL 'http://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000' is dual type
'video/x-ms-asf'
<<<<<<<<<< mmsh://wmscr2.dr.dk/e02ch11m?wmcontentbitrate=300000&MSWMExt=.asf
<gpointer at 0x820e828>
>>>> <totem.plparser.Parser object at 0x8192824 (TotemPlParser at 0x8209a00)> http://www.dr.dk/netradio/Metafiler/asx/dr_dansktop_128.asx
<enum TOTEM_PL_PARSER_RESULT_SUCCESS of type TotemPlParserResult>


Does this happen every time?
yes

Other information:
Original report in: https://qa.mandriva.com/show_bug.cgi?id=45412

Please let me know if there's something I can do to improve your tests,

Thanks in advance,

Bruno.
Comment 1 Bastien Nocera 2008-11-03 17:35:06 UTC
This seems like a problem in your gvfs setup. Please use test-parser as shipped in the original sources for your tests.

$ ./test-parser -d http://www.radios.com.br/asx/102braga-br.asx

###################### parsing ################

_get_mime_type_for_name for 'http://www.radios.com.br/asx/102braga-br.asx' returned 'audio/x-ms-asx'
URL 'http://www.radios.com.br/asx/102braga-br.asx' is dual type 'audio/x-ms-asx'
URL 'http://www.radios.com.br/asx/102braga-br.asx' was opened successfully in _get_mime_type_with_data:
URL 'mms://overserver3000.com/fm102' is MMS, RTSP, PNM or ICY, not a playlist
added URI 'mms://overserver3000.com/fm102'

You should also at least mention the version of totem-pl-parser you're using...
Comment 2 João Walter Bruno Filho 2008-11-04 15:33:36 UTC
(In reply to comment #1)
> This seems like a problem in your gvfs setup. Please use test-parser as shipped
> in the original sources for your tests.
> 
> $ ./test-parser -d http://www.radios.com.br/asx/102braga-br.asx
> 
./test-parser -d http://www.radios.com.br/asx/102braga-br.asx

###################### parsing ################

_get_mime_type_for_name for 'http://www.radios.com.br/asx/102braga-br.asx' returned 'audio/x-ms-asx'
URL 'http://www.radios.com.br/asx/102braga-br.asx' is dual type 'audio/x-ms-asx'
URL 'http://www.radios.com.br/asx/102braga-br.asx' couldn't be opened in _get_mime_type_with_data: 'Operation not supported'
url 'http://www.radios.com.br/asx/102braga-br.asx' unhandled

> You should also at least mention the version of totem-pl-parser you're using...
> 
I'm using:
libtotem-plparser12-2.24.1-2.1mdv2009.0
libtotem-plparser-mini12-2.24.1-2.1mdv2009.0
Gvfs is:
gvfs-1.0.1-2mdv2009.0
libgvfs0-1.0.1-2mdv2009.0

Comment 3 Bastien Nocera 2008-11-04 15:39:34 UTC
It fails on g_file_read() for that file.
Comment 4 Alexander Larsson 2009-03-10 14:46:50 UTC
Seems to be a problem with the http backend:

gvfs-cat http://www.radios.com.br/asx/102braga-br.asx
gvfs-cat: http://www.radios.com.br/asx/102braga-br.asx: error opening file: Operation not supported
Comment 5 Alexander Larsson 2009-03-10 14:49:47 UTC
*** Bug 563367 has been marked as a duplicate of this bug. ***
Comment 6 Ondrej Holy 2014-11-05 12:41:45 UTC
This is an old bug, I can't reproduce. If you still see it with current gvfs versions, please reopen with reproduction details.