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 600830 - Hangs querying YouTube URL
Hangs querying YouTube URL
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: http backend
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
: 595928 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-11-05 15:33 UTC by Bastien Nocera
Modified: 2009-12-18 09:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2009-11-05 15:33:23 UTC
1. Launch Totem
2. Enable the YouTube plugin in Edit -> Plugins...
3. Launch a search in the YouTube plugin
4. On one of the search results, right-click and copy the URL
5. Try gvfs-info on the URL

For example:
$ time gvfs-info "http://www.youtube.com/get_video?video_id=oMLCrzy9TEs&t=vjVQa1PpcFOQ9Jb7MskIXSWfQNf5FPBbGYoBVBnfetY%3D&fmt=18"
Error getting info: DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

real	1m0.084s
user	0m0.006s
sys	0m0.005s

It will timeout after a minute.

<tbzatek> hadess: curl only reports HTTP/1.1 303 See Other, perhaps gvfs-httpd expects further data
<tbzatek> and it hangs
<tbzatek> Content-Length: 0
Comment 1 Bastien Nocera 2009-11-05 15:53:50 UTC
Note that I have the "network speed" setting to the maximum in totem ("Intranet/LAN") which means it adds the &fmt=18 argument to ask for a higher-resolution video.

The problem is probably that the video doesn't exist in this format (in my case I do a search for "something good 08").

Removing the &fmt=18 makes gvfs-info work as expected.
Comment 2 Dan Winship 2009-11-05 16:17:57 UTC
fixed in libsoup; gvfs may need to copy the fix into gvfsbackenddav.c to
make it work with dav (as opposed to plain http)
Comment 3 Christian Kellner 2009-11-06 09:59:50 UTC
The SOUP_STATUS_SEE_OTHER and SOUP_STATUS_FOUND bits are commented out in dav.
Comment 4 Dan Winship 2009-12-18 09:18:55 UTC
*** Bug 595928 has been marked as a duplicate of this bug. ***