[Bug 1898501] Re: Calamares fails to parse GeoIP results correctly in JSON

Erich Eickmeyer  1898501 at bugs.launchpad.net
Tue Mar 16 15:50:09 UTC 2021


** Also affects: geoip-database (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to geoip-database in Ubuntu.
https://bugs.launchpad.net/bugs/1898501

Title:
  Calamares fails to parse GeoIP results correctly in JSON

Status in Calamares:
  Unknown
Status in calamares package in Ubuntu:
  Invalid
Status in geoip-database package in Ubuntu:
  New

Bug description:
  STEPS TO REPRODUCE
   0. Ensure Internet is connected
   1. Boot Focal or Groovy Lubuntu or Groovy Ubuntu Studio
   2. Run the installer
   3. Advance to the time zone selection map

  EXPECTED RESULTS
  The actual time zone is selected.

  ACTUAL RESULTS
  New York is selected no matter what.

  NOTES
  A similar bug was fixed with 3.2.14-0ubuntu1
  https://bugs.launchpad.net/ubuntu/+source/calamares/+bug/1845424

  It seems that between then and Focal (3.2.20), there was another
  similar regression affecting JSON handling.

  Log files show something like this:
  virtual QString CalamaresUtils::GeoIP::GeoIPJSON::rawReply(const QByteArray&)
      WARNING:Invalid YAML data for GeoIPJSON 
  setGeoIP(Config*, const QVariantMap&)::<lambda()>
      GeoIP result for welcome= "" 
  void setCountry(Config*, const QString&, CalamaresUtils::GeoIP::Handler*)
      Unusable country code "" 
  ..  Obtained from "https://ipapi.co/json"  ( 1 "country" ) 

  The ultimate effect on the user was resolved by changing to XML (and subsequently Canonical's GeoIP services):
  https://bugs.launchpad.net/ubuntu/+source/calamares-settings-ubuntu/+bug/1899854

  However, this bug remains to track changes to JSON parsing, since it
  may be something we will need to use in the future.

  Given that this doesn't really have an impact on users, its Importance
  has been set to low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/calamares/+bug/1898501/+subscriptions



More information about the foundations-bugs mailing list