Open Gpetrak opened 3 weeks ago
does it happen always or erratically @Gpetrak?
@giohappy this happens always.
@Gpetrak I suspect the first problem is related to this hacky code:
Maybe this traversal doesn't work for other reasons here (an error stream with the style retrieval, or whatever). In any case this solution is very fragile. If a better way is not available, and a traversal is the only solution, a more robust traversal should be implemented. It could be an iterative loop where the type of the parent class is checked to obtain the one we're looking for.
Thank you @giohappy. Finally, I fixed the error of SLD
and Metadata
and I implemented a more elegant way in order to find the correct type of object, following your recommendation.
The corresponding PR of this issue is available here #294
Although the style upload in GeoNode works, when the user tries to get the default style by selecting the button: “Reload the default style from GeoNode” the plugin raises the following error:
Also, when the user tries to reload metadata by selecting the button: “Reload metadata from GeoNode” it gets a quite similar error: