Epiphany goes to IP address of local sites

Bug #36769 reported by Darryl Clarke
14
Affects Status Importance Assigned to Milestone
GnomeVFS
Fix Released
Medium
gnome-vfs2 (Ubuntu)
Fix Released
Medium
Sebastian Dröge

Bug Description

using Dapper current.
epiphany-browser:
  Installed: 2.14.0-0ubuntu2
  Candidate: 2.14.0-0ubuntu2

I have my local apache set to broadcast virtual hosts via Avahi.

Epiphany sees them properly, however if I click one of the links it goes to the IP address of the host instead of the hostname itself.

This causes issues with name based virtual hosting since all local sites end up going to the same IP address.

Revision history for this message
Dean Sas (dsas) wrote :

I've not been able to test this myself...

Does the apache avahi broadcaster thing broadcast the domain-name or host-name properties?

If you have avahi-discover installed you should be able to see this.

Revision history for this message
Darryl Clarke (dclarke) wrote :

Looks like 'address' is what you want?

Service Type: _http._tcp
Service Name: Intranet
Domain Name: local
Interface: eth0 IPv4
Address: intranet.flatlinesystems.net/192.168.0.1:80
TXT org.freedesktop.Avahi.cookie = 599466029

Revision history for this message
Dean Sas (dsas) wrote :

Hmm, possibly, I'm not 100% sure though, I've not experimented with avahi but I thought I'd read you needed a host-name and/or a domain-name. Though if you're using the apache plugin then that probably should do the right thing.

Hopefully someone else knows and will chime in.

Revision history for this message
Darryl Clarke (dclarke) wrote :

I had this issue with the Zeroconf Service Discovery Applet too.

As it turns out they had already fixed it before I listed the bug.

As far as I know the hostname should be pulled from the address line (as it contains all relevant info - hostname/ip:port) The domain name isn't usable in this case, since it's likely to always be 'local' for most avahi users.

For non-vhost entries, or user directories (ie: the default server) it is broadcasted as

Address: techno.local/192.168.0.1:80

Revision history for this message
Sebastian Dröge (slomo) wrote :

Ok, I can confirm this bug. But choosing always the address part won't work as there is nothing that resolves the .local address by default. you have to install libnss-mdns for this.
avahi has a function to check whether the system is able resolve .local hostnames but this is most probably not implemented in gnome-vfs (which epiphany uses for dns service discovery)

Changed in epiphany-browser:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastian Dröge (slomo) wrote :

ok, let's re-assign this to gnomevfs. the gnomevfs dns-sd API should use the avahi function for determining whether the .local hostnames can be resolved or not and return these. I'll forward this upstream later

Changed in epiphany-browser:
assignee: nobody → slomo
Revision history for this message
Sebastian Dröge (slomo) wrote :

Should be fixed with gnome-vfs2 2.14.1-0ubuntu5

Changed in gnome-vfs2:
status: Confirmed → Fix Released
Revision history for this message
Darryl Clarke (dclarke) wrote :

Looks good.

Cheers.

Changed in gnome-vfs:
status: Confirmed → Fix Released
Changed in gnome-vfs:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.