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 601776 - g_file_query_info breaks due to different results for HEAD and GET from (broken) server
g_file_query_info breaks due to different results for HEAD and GET from (brok...
Status: RESOLVED DUPLICATE of bug 547020
Product: gvfs
Classification: Core
Component: http backend
git master
Other Linux
: Normal normal
: ---
Assigned To: Christian Kellner
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-11-13 08:47 UTC by Jeroen Wouters
Modified: 2014-04-05 19:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeroen Wouters 2009-11-13 08:47:37 UTC
I get the following error on Ubuntu 9.10:

> gnomevfs-info http://export.arxiv.org/rss/quant-ph/
Error: File not found

curl, wget and firefox retrieve this address without problem.
Comment 1 Christian Kellner 2009-11-13 09:28:36 UTC
First of all, gnome-vfs is obsolete and got replaced by GIO/GVFS (since quite a while now). You want to use gvfs-info not gnome-vfs info. 

BUT The problem here is -and gvfs is affected by that as well- that the server is broken, since it returns 404 on HEAD but 200 on GET. 


HEAD /rss/quant-ph/ HTTP/1.1
Host: export.arxiv.org
User-Agent: gvfs/1.4.1

HTTP/1.1 404 File Not Found
Date: Fri, 13 Nov 2009 09:17:31 GMT
Server: Apache
Content-Type: text/html

But:

GET /rss/quant-ph/ HTTP/1.1
Host: export.arxiv.org
User-Agent: gvfs/1.4.1

HTTP/1.1 200 OK
Date: Fri, 13 Nov 2009 09:17:48 GMT
Server: Apache
ETag: "Fri, 13 Nov 2009 01:30:00 GMT", "1258075800"
Last-Modified: Fri, 13 Nov 2009 01:30:00 GMT
Transfer-Encoding: chunked
Content-Type: text/xml

This is very similar of bug #547020 or #596615. I am not dupping it right away but I am going to use that as the general HEAD doesn't always work but GET does bug.
Comment 2 Ross Lagerwall 2014-04-05 19:35:19 UTC
It is now NOT_ALLOWED:

$ gvfs-info http://export.arxiv.org/rss/quant-ph/
Error getting info: HTTP Error: Method Not Allowed

*** This bug has been marked as a duplicate of bug 547020 ***