Hello community, here is the log from the commit of package gpxsee for openSUSE:Factory checked in at 2018-04-20 17:31:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gpxsee (Old) and /work/SRC/openSUSE:Factory/.gpxsee.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gpxsee" Fri Apr 20 17:31:25 2018 rev:26 rq:598797 version:5.9 Changes: -------- --- /work/SRC/openSUSE:Factory/gpxsee/gpxsee.changes 2018-04-19 15:31:41.113646917 +0200 +++ /work/SRC/openSUSE:Factory/.gpxsee.new/gpxsee.changes 2018-04-20 17:33:53.392922140 +0200 @@ -1,0 +2,8 @@ +Thu Apr 19 20:03:00 CEST 2018 - [email protected] + +- Update to version 5.9 + * Fixed HTTP redirects handling. + * Proper fix of the zoom changes/offset bugs (resolved only + partialy in 5.8). + +------------------------------------------------------------------- Old: ---- GPXSee-5.8.tar.gz New: ---- GPXSee-5.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gpxsee.spec ++++++ --- /var/tmp/diff_new_pack.YVgrn0/_old 2018-04-20 17:33:54.188893274 +0200 +++ /var/tmp/diff_new_pack.YVgrn0/_new 2018-04-20 17:33:54.192893130 +0200 @@ -19,7 +19,7 @@ # See also http://en.opensuse.org/openSUSE:Specfile_guidelines Name: gpxsee -Version: 5.8 +Version: 5.9 Release: 1 Summary: GPS log files visualizing and analyzing tool License: GPL-3.0 ++++++ GPXSee-5.8.tar.gz -> GPXSee-5.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GPXSee-5.8/.appveyor.yml new/GPXSee-5.9/.appveyor.yml --- old/GPXSee-5.8/.appveyor.yml 2018-04-17 22:54:42.000000000 +0200 +++ new/GPXSee-5.9/.appveyor.yml 2018-04-19 19:50:04.000000000 +0200 @@ -1,4 +1,4 @@ -version: 5.8.{build} +version: 5.9.{build} configuration: Release platform: Any CPU environment: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GPXSee-5.8/gpxsee.pro new/GPXSee-5.9/gpxsee.pro --- old/GPXSee-5.8/gpxsee.pro 2018-04-17 22:54:42.000000000 +0200 +++ new/GPXSee-5.9/gpxsee.pro 2018-04-19 19:50:04.000000000 +0200 @@ -1,5 +1,5 @@ TARGET = GPXSee -VERSION = 5.8 +VERSION = 5.9 QT += core \ gui \ network diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GPXSee-5.8/lang/gpxsee_sv.ts new/GPXSee-5.9/lang/gpxsee_sv.ts --- old/GPXSee-5.8/lang/gpxsee_sv.ts 2018-04-17 22:54:42.000000000 +0200 +++ new/GPXSee-5.9/lang/gpxsee_sv.ts 2018-04-19 19:50:04.000000000 +0200 @@ -84,7 +84,7 @@ <message> <location filename="../src/data/data.cpp" line="117"/> <source>OziExplorer files</source> - <translation type="unfinished"></translation> + <translation>OziExplorer-filer</translation> </message> <message> <location filename="../src/data/data.cpp" line="118"/> @@ -1155,7 +1155,7 @@ <message> <location filename="../src/GUI/optionsdialog.cpp" line="315"/> <source>Filtering</source> - <translation>Filtrerar</translation> + <translation>Filtrering</translation> </message> <message> <location filename="../src/GUI/optionsdialog.cpp" line="316"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GPXSee-5.8/pkg/gpxsee.nsi new/GPXSee-5.9/pkg/gpxsee.nsi --- old/GPXSee-5.8/pkg/gpxsee.nsi 2018-04-17 22:54:42.000000000 +0200 +++ new/GPXSee-5.9/pkg/gpxsee.nsi 2018-04-19 19:50:04.000000000 +0200 @@ -5,7 +5,7 @@ ; The name of the installer Name "GPXSee" ; Program version -!define VERSION "5.8" +!define VERSION "5.9" ; The file to write OutFile "GPXSee-${VERSION}.exe" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GPXSee-5.8/pkg/gpxsee64.nsi new/GPXSee-5.9/pkg/gpxsee64.nsi --- old/GPXSee-5.8/pkg/gpxsee64.nsi 2018-04-17 22:54:42.000000000 +0200 +++ new/GPXSee-5.9/pkg/gpxsee64.nsi 2018-04-19 19:50:04.000000000 +0200 @@ -5,7 +5,7 @@ ; The name of the installer Name "GPXSee" ; Program version -!define VERSION "5.8" +!define VERSION "5.9" ; The file to write OutFile "GPXSee-${VERSION}_x64.exe" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GPXSee-5.8/src/GUI/mapview.cpp new/GPXSee-5.9/src/GUI/mapview.cpp --- old/GPXSee-5.8/src/GUI/mapview.cpp 2018-04-17 22:54:42.000000000 +0200 +++ new/GPXSee-5.9/src/GUI/mapview.cpp 2018-04-19 19:50:04.000000000 +0200 @@ -287,10 +287,9 @@ it.value()->setMap(_map); updatePOIVisibility(); - QPointF oc = vr.center(); - QPointF nc = _map->ll2xy(cr.center()); - if (qAbs(oc.x() - nc.x()) >= 1.0 || qAbs(oc.y() - nc.y()) >= 1.0) - centerOn(nc); + QPointF nc = QRectF(_map->ll2xy(cr.topLeft()), + _map->ll2xy(cr.bottomRight())).center(); + centerOn(nc); resetCachedContent(); QPixmapCache::clear(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GPXSee-5.8/src/map/downloader.cpp new/GPXSee-5.9/src/map/downloader.cpp --- old/GPXSee-5.8/src/map/downloader.cpp 2018-04-17 22:54:42.000000000 +0200 +++ new/GPXSee-5.9/src/map/downloader.cpp 2018-04-19 19:50:04.000000000 +0200 @@ -91,9 +91,14 @@ { QUrl url(dl.url()); + if (!url.isValid() || !(url.scheme() == "http" || url.scheme() == "https")) { + qWarning("%s: Invalid URL\n", qPrintable(url.toString())); + return false; + } + if (_errorDownloads.contains(url)) return false; - if (_currentDownloads.contains(url)) + if (_currentDownloads.contains(url) && !redirect) return false; QNetworkRequest request(url); @@ -107,10 +112,12 @@ request.setRawHeader("Authorization", authorization); QNetworkReply *reply = _manager.get(request); - if (reply) { + if (reply && reply->isRunning()) { _currentDownloads.insert(url); ReplyTimeout::setTimeout(reply, TIMEOUT); - } else + } else if (reply) + downloadFinished(reply); + else return false; return true; @@ -157,20 +164,25 @@ QUrl origin = reply->request().attribute(ATTR_ORIGIN).toUrl(); int level = reply->request().attribute(ATTR_LEVEL).toInt(); - if (location == url) { - _errorDownloads.insert(url); - qWarning("Error downloading file: %s: " - "redirect loop\n", url.toEncoded().constData()); - } else if (level >= MAX_REDIRECT_LEVEL) { + if (level >= MAX_REDIRECT_LEVEL) { _errorDownloads.insert(origin); qWarning("Error downloading file: %s: " - "redirect level limit reached\n", + "redirect level limit reached (redirect loop?)\n", origin.toEncoded().constData()); } else { + QUrl redirectUrl; + if (location.isRelative()) { + QString path = QDir::isAbsolutePath(location.path()) + ? location.path() : "/" + location.path(); + redirectUrl = QUrl(url.scheme() + "://" + url.host() + path); + } else + redirectUrl = location; + Redirect redirect(origin.isEmpty() ? url : origin, level + 1); - Download dl(location, filename); - doDownload(dl, reply->request().rawHeader("Authorization"), - &redirect); + Download dl(redirectUrl, filename); + if (!doDownload(dl, reply->request().rawHeader("Authorization"), + &redirect)) + _errorDownloads.insert(origin.isEmpty() ? url : origin); } } else if (!saveToDisk(filename, reply)) ++++++ PKGBUILD ++++++ --- /var/tmp/diff_new_pack.YVgrn0/_old 2018-04-20 17:33:54.552880074 +0200 +++ /var/tmp/diff_new_pack.YVgrn0/_new 2018-04-20 17:33:54.552880074 +0200 @@ -1,5 +1,5 @@ pkgname=gpxsee -pkgver=5.8 +pkgver=5.9 pkgrel=1 pkgdesc='GPS log files visualizing and analyzing tool' arch=('i686' 'x86_64') ++++++ debian.changelog ++++++ --- /var/tmp/diff_new_pack.YVgrn0/_old 2018-04-20 17:33:54.588878769 +0200 +++ /var/tmp/diff_new_pack.YVgrn0/_new 2018-04-20 17:33:54.592878623 +0200 @@ -1,3 +1,11 @@ +gpxsee (5.9) stable; urgency=high + + * Fixed HTTP redirects handling. + * Proper fix of the zoom changes/offset bugs (resolved only + partialy in 5.8). + + -- Martin Tuma <[email protected]> Thu, 19 Apr 2018 20:06:35 +0200 + gpxsee (5.8) stable; urgency=low * Fixed the irritating map zoom changes on OSM maps switching and ++++++ gpxsee.dsc ++++++ --- /var/tmp/diff_new_pack.YVgrn0/_old 2018-04-20 17:33:54.712874272 +0200 +++ /var/tmp/diff_new_pack.YVgrn0/_new 2018-04-20 17:33:54.712874272 +0200 @@ -1,9 +1,9 @@ Format: 1.0 Source: gpxsee -Version: 5.8 +Version: 5.9 Binary: gpxsee Maintainer: Martin Tuma <[email protected]> Architecture: any Build-Depends: debhelper (>= 9), qtbase5-dev, qtbase5-dev-tools, qt5-qmake, qttools5-dev-tools, libqt5opengl5-dev Files: - 00000000000000000000000000000000 0 GPXSee-5.8.tar.gz + 00000000000000000000000000000000 0 GPXSee-5.9.tar.gz
