[GeoNode-devel] CSV upload with column named "location" fails (new issue #3557)

Jonathan Doig j.doig at unsw.edu.au
Wed Jan 10 21:46:01 PST 2018


Hi all
New bug tested on Geonode 2.4: in layers/upload, trying to upload a CSV file with a column named 'location' either fails with the message 'BAD REQUEST' in the page, or appears to hang and never finish uploading.
E.g. upload a CSV file containing just 1 record:
location,longitude,latitude
Atherton,145.48586,-17.26608

Geoserver.log explains that PostgreSQL is failing to create another 'location' column.
One option would be to check for that column name and gracefully exit with a message like:
"The attribute name 'location' is reserved. Please rename this attribute in your data before uploading again."

Raised a new Geonode issue #3557<https://github.com/GeoNode/geonode/issues/3557>.

Regards
Jonathan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180111/61a4a7fa/attachment.html>


More information about the geonode-devel mailing list