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

Fix extension for file download in styles #536

Open NyakudyaA opened 5 years ago

NyakudyaA commented 5 years ago

Problem

When in edit mode for a layer choosing download layer style results in the extension .xml appended to the style that is saved on disk.

screenshot 2018-11-25 at 14 29 34

Solution

Fix and make happy.

NB: Why is it when we download the zipped files we do not get the qml attached in the layers as well ? (#539)

boney-bun commented 5 years ago

@NyakudyaA could you elaborate more? i can't replicate the issue in the testing and local server.

below is what i did (tested using firefox 61.0.2 on macos): geonode-536

NyakudyaA commented 5 years ago

hi @boney-bun I only realised that this happens when you are trying to download the style in Safari.

It downloads the style but appends an extension qml.xml

boney-bun commented 5 years ago

hi @NyakudyaA this is odd. usually we got this kind of issues from firefox 😆

ok... i can replicate the issue now. let me investigate what i can do with it.