[QGIS-Developer] stronger minor version parsing is required inside GeoNode request

Alessandro Pasotti apasotti at gmail.com
Fri Jan 25 02:10:21 PST 2019


Giovanni,

can you please file a ticket?

On Fri, Jan 25, 2019 at 11:06 AM G. Allegri <giohappy at gmail.com> wrote:

> Currently QGIS parses GeoNode's version with a simple .toInt():
> https://github.com/qgis/QGIS/blob/master/src/core/geocms/geonode/qgsgeonoderequest.cpp#L275
> but GeoNode adds more informations to the minor version, for instance "rc"
> for a release candidate. This makes the parsing fail and thus layers are
> not fetched.
>
> As an example look at the "geonode_version" field on the master demo
> instance: http://master.demo.geonode.org/api/layers/
>
> Probably a regex should be used to extract only the first numbers from the
> minor version part.
>
> Best,
> Giovanni
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20190125/f3461be3/attachment.html>


More information about the QGIS-Developer mailing list