kartoza / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
http://geonode.org/
GNU General Public License v3.0
8 stars 17 forks source link

Preserve metadata error on upload #484

Closed NyakudyaA closed 5 years ago

NyakudyaA commented 6 years ago

Problem

When trying to upload layers with metadata and choosing the option to preserve the metadata results in an error preserve

But uploading the layer and choosing edit and then upload the metadata works properly.

Solution

Make it happy and why is the one method working whilst the other is not. we need consistency across the UI

NyakudyaA commented 5 years ago

This error is caused by the metadata that is generated by InaSAFE. The metadata contains the following line <?xml version="1.0" encoding="UTF-8"?> This sets the encoding to be used by the whole metadata document.

Removing this makes the layer upload successfully I will close this ticket and open a new one showing the only problem left. cc @boney-bun @lucernae