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 548287 - Use GResolver (or import it into libsoup)
Use GResolver (or import it into libsoup)
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: HTTP Transport
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on: 548466
Blocks: 526321 532778 567871
 
 
Reported: 2008-08-18 15:17 UTC by Bastien Nocera
Modified: 2009-08-10 20:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2008-08-18 15:17:01 UTC
From bug 432778

$ gvfs-info http://www.kåremåla.se/graff-demo-2.avi
Error getting info: HTTP Error: Cannot resolve hostname
$ gvfs-info http://www.xn--kremla-iuad.se/testcase.html
display name: testcase.html
edit name: testcase.html
type: unknown
size: 394
attributes:
  standard::display-name: testcase.html
  standard::edit-name: testcase.html
  standard::size: 394
  standard::content-type: text/html
  id::filesystem: type='http',uri='http://www.xn--kremla-iuad.se/testcase.html',mount_prefix='/testcase.html'
  etag::value: "15366-18a-450a9adb72a40"

GStreamer's libsoup element has the same problem.

From the browser plugin:
<snip>
** Message: NewStream mimetype 'video/x-msvideo' URL 'http://www.kåremåla.se/graff-demo-2.avi'
** Message: Not expecting a new stream; aborting stream
** Message: Error: Cannot resolve hostname
gstsouphttpsrc.c(683): gst_soup_http_src_finished_cb (): /play/source:
libsoup status code 2
Comment 1 Dan Winship 2008-08-18 15:30:53 UTC
might make sense to combine this with bug 532778 (GThread-less async DNS) and push the result into gio
Comment 2 Dan Winship 2008-08-19 15:09:35 UTC
(In reply to comment #1)
> might make sense to combine this with bug 532778 (GThread-less async DNS) and
> push the result into gio

filed as bug 548466. keeping this one open for now until it's clearer exactly how things are going to go
Comment 3 Dan Winship 2008-09-30 18:33:19 UTC
OK, the plan is now definitely to use the GResolver code from bug 548466. If that can't make it into glib for 2.20, or if glib 2.20 isn't going to be out before GNOME 2.26, then I'll just copy it into libsoup for 2.26.
Comment 4 Dan Winship 2009-08-10 20:33:01 UTC
fixed in master

danw@desktop:tests (master)> ./get -h 'http://www.kåremåla.se/graff-demo-2.avi'
HEAD /graff-demo-2.avi HTTP/1.1

HTTP/1.1 200 OK
Date: Mon, 10 Aug 2009 20:30:53 GMT
Server: Apache/2.2.11 (Fedora)
Last-Modified: Fri, 27 Jun 2008 18:00:01 GMT
ETag: "15346-3dcf40-450a9adbfa21c"
Accept-Ranges: bytes
Content-Length: 4050752
Connection: close
Content-Type: video/x-msvideo