mistletoe.canonical.com isn't answering geoname-lookup requests from datetime indicator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Geonames |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The indicator doesn't seem to find Calgary (the one in Canada). I type it in, wait, and nothing happens. If I shorten it to "Calgar", then it finds "Calgar, Spain".
I have had many difficulties in adding other cities to this indicator, but after some attempts, back and forth, some were added.
A network sniff shows this stream for the Calgary request from the indicator applet:
"""
GET /?query=
Host: geoname-
User-Agent: gvfs/1.10.0
Accept-Language: en-us, en;q=0.9, en;q=0.8
Connection: Keep-Alive
HTTP/1.1 200 OK
Date: Wed, 25 Jan 2012 12:04:11 GMT
Server: Apache/2.2.14 (Ubuntu)
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/json
2
[]
0
"""
So, it returned an empty list.
But I can do it manually and then it works:
"""
andreas@nsn7:~$ telnet mulberry.
Trying 91.189.94.25...
Connected to mulberry.
Escape character is '^]'.
GET /?query=
Host: geoname-
HTTP/1.1 200 OK
Date: Wed, 25 Jan 2012 12:02:34 GMT
Server: Apache/2.2.14 (Ubuntu)
Transfer-Encoding: chunked
Content-Type: application/json
184
[{"name" : "Calgary", "admin1" : "Alberta", "country" : "Canada", "longitude" : "-114.085290", "latitude" : "51.050110" }, {"name" : "Calgary Place", "admin1" : "Georgia", "country" : "United States", "longitude" : "-84.548540", "latitude" : "33.361230" }, {"name" : "Calgary Woods", "admin1" : "Texas", "country" : "United States", "longitude" : "-95.314660", "latitude" : "29.863560" }]
0
"""
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: indicator-datetime 0.3.1-0ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-15-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Wed Jan 25 09:50:53 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: indicator-datetime
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- Can't add "Calgary" to the list of locations + mistletoe.canonical.com isn't answering geoname-lookup requests from + datetime indicator |
host geoname- lookup. ubuntu. com lookup. ubuntu. com has address 91.189.89.144 lookup. ubuntu. com has address 91.189.94.25
geoname-
geoname-
One of them works, the other doesn't:
andreas@nsn7:~$ curl "91.189. 89.144/ ?query= Calgary& release= 11.10&lang= en_US" -H "Host: geoname- lookup. ubuntu. com"; echo
[]
andreas@nsn7:~$ curl "91.189. 94.25/? query=Calgary& release= 11.10&lang= en_US" -H "Host: geoname- lookup. ubuntu. com"; echo
[{"name" : "Calgary", "admin1" : "Alberta", "country" : "Canada", "longitude" : "-114.085290", "latitude" : "51.050110" }, {"name" : "Calgary Place", "admin1" : "Georgia", "country" : "United States", "longitude" : "-84.548540", "latitude" : "33.361230" }, {"name" : "Calgary Woods", "admin1" : "Texas", "country" : "United States", "longitude" : "-95.314660", "latitude" : "29.863560" }]