Hello, I am not able to open a topic in the geoserver forum, I guess becauase I am a new user. But I wanted to report this bug to the community anyway.
I have discovered a problem with the SQL View layer page. It seems that if the PostGIS database associated with the layer changes its structure in such a way that a table no longer exists, or is otherwise invalid, the page fails to load:
I believe this has something to do with the page trying to introspect the data source, finding out that certain things are invalid, and crashing. This is quite annoying, since you may make changes in the database and then would prefer to just go and modify the SQL View afterwards. The only way to fix it, it seems, is to delete the layer and re-create it from scratch.
I think that is should be handled a bit more elegantly than this, for example indicating that problematic properties or settings on the layer are invalid, so that they can be repaired directly on the UI.
I tried adding format_options=KMPLACEMARKNAME:titoloDato;SUPEROVERLAY:true;KMPLACEMARK:true, but the title does not appear.
I also tried using an SLD style file, but with no effect.
Can anyone help me?
Another strange thing is that when I check with layer preview (OpenLayers) or download the KML from the preview, I get different errors, but in Google Earth, it displays correctly and the resulting KML is correct.
All the data is filtered and contains correct coordinates.
I can’t figure out where the problem is.