aodn / geoserver-build

Configures a GeoServer war containing extensions and configuration required by AODN instances
Other
2 stars 4 forks source link

Exception when trying to edit a layer using GSLFE with borken DB connection #136

Closed anguss00 closed 7 years ago

anguss00 commented 8 years ago

Steps to reproduce: Run up Geoserver in vagrant with borken DB connection (i.e the default one). Try to edit a layer using Layer Filters Editor.

Observed behaviour: Stacktrace complaining about wicket hierarchy issues.

Expected behaviour: Decent error handling.

pmbohm commented 7 years ago

I spent some time on this and realised I am trapped by running this with Jetty. Having no server context causes an error in lookupGeoServerDataDirectory.java.

It seems we are stuck with stack traces in the filter pages, however the bug is to show readable messages such as borken DB connections in the trace.

jonescc commented 7 years ago

In this case, Geoserver would have disabled layers which have broken borken db connections on startup and they would not be able to be accessed elsewhere in Geoserver. The layer filter extension shouldn't try to display disabled layers!