geosolutions-it / nexus-geonode

Nexus Platform
BSD 2-Clause "Simplified" License
0 stars 4 forks source link

Layer poperties dialog keeps spinning even when the upload to GeoNode is completed #576

Closed giohappy closed 2 years ago

giohappy commented 2 years ago

I was testing the upload of a new layer with master demo (master branch). The upload succeeded but the layer porpeties window keeps spinning as if the upload was still running.

ricardogsilva commented 2 years ago

@giohappy I thought I had fixed this issue on the latest release of the plugin (v0.9.5) - did you get that behavior with this latest version?

It seems that this issue originates from GeoNode previously replying with HTTP 201 - Created when uploading a dataset, but now it replies with HTTP 200 - Success.

My fix was just looking at either of these two status codes, as can be seen here:

https://github.com/kartoza/qgis_geonode/blob/9b60d74718c70f157a93b56547ed4c07b1c966ab/src/qgis_geonode/apiclient/geonode_v3.py#L325

I am not able to replicate this with the latest version of the plugin, using a locally deployed GeoNode.

giohappy commented 2 years ago

ok @ricardogsilva, you've right I faced the error with 0.9.4