! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
http://archive.xfce.org/geolocation seems broken
Status:
RESOLVED: FIXED
Product:
releases.xfce.org
Component:
General

Comments

Description Colin Leroy 2011-11-14 22:03:10 CET
Hi,

I'm looking at fixing the Weather plugin and I've noticed that http://archive.xfce.org/geolocation thinks I'm in Spain and looks up the wrong ip:

colin@paperstreet:~$ ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:213.41.244.236  P-t-P:62.4.16.251  Mask:255.255.255.255
          inet6 addr: fe80::4fe:5278:56aa:a2/10 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1452  Metric:1
          RX packets:4310885 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3495757 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:3394376409 (3.3 GB)  TX bytes:1272753570 (1.2 GB)

colin@paperstreet:~$ curl http://archive.xfce.org/geolocation
<Response>
  <Ip>95.60.187.66</Ip>
  <CountryCode>ES</CountryCode>
  <CountryName>Spain</CountryName>
  <RegionCode>56</RegionCode>
  <RegionName>Catalonia</RegionName>
  <RegionName>0</RegionName>
  <City>Santpedor</City>
  <Latitude>40.783298</Latitude>
  <Longitude>1.850000</Longitude>
</Response>
Comment 1 Raphael Groner 2013-05-04 19:50:46 CEST
ping?

(In reply to comment #0)

> http://archive.xfce.org/geolocation thinks I'm in Spain and looks up the
> wrong ip:

Do you use any VPN or something like that?
Comment 2 Raphael Groner 2013-05-04 19:53:04 CEST
Is there a way to tell curl to follow referrer requests? Alternatively, please fix the URL in the sources.

$ curl http://archive.xfce.org/geolocation
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://geoip.xfce.org">here</a>.</p>
<hr>
<address>Apache/2.2 Server at archive.xfce.org Port 80</address>
</body></html>

$ curl http://geoip.xfce.org
<Response>
  <Ip>91.119.141.245</Ip>
  <CountryCode>AT</CountryCode>
  <CountryName>Austria</CountryName>
  <RegionCode>09</RegionCode>
  <RegionName>Wien</RegionName>
  <AreaCode>0</AreaCode>
  <City>Vienna</City>
  <Latitude>48.200001</Latitude>
  <Longitude>16.366699</Longitude>
</Response>
Comment 3 Andre Miranda editbugs 2015-02-22 04:48:31 CET
(In reply to Raphael Groner from comment #2)
> Is there a way to tell curl to follow referrer requests? Alternatively,
> please fix the URL in the sources.

Yep, curl -L http://archive.xfce.org/geolocation

[andre@andre-desktop ~]$ curl -L http://archive.xfce.org/geolocation
<Response>
  <Ip>191.33.58.139</Ip>
  <CountryCode>(none)</CountryCode>
  <CountryName>(none)</CountryName>
  <RegionCode>(none)</RegionCode>
  <RegionName>(none)</RegionName>
  <AreaCode>(none)</AreaCode>
  <City>(none)</City>
  <Latitude>(none)</Latitude>
  <Longitude>(none)</Longitude>
</Response>

Now it seems to be completely broken.
Comment 4 Skunnyk editbugs 2017-05-10 14:48:14 CEST
Yep, the geoip database is outdated. I'll update this part and enable https on geoip.xfce.org . 
The weather plugin use geoip.xfce.org to auto set location, and crash when there is utf-8 character.
Comment 5 Skunnyk editbugs 2017-05-10 15:10:39 CEST
By adding GeoIPEnableUTF8 On, the UTF-8 problem is fixed.
GeoIP database is now updated, location detection is more accurate.

https incoming.

Bug #8151

Reported by:
Colin Leroy
Reported on: 2011-11-14
Last modified on: 2017-05-10

People

Assignee:
Skunnyk
CC List:
4 users

Version

Version:
unspecified

Attachments

Additional information