While fixing GEOS-8080 <https://osgeo-org.atlassian.net/browse/GEOS-8080>,
I have discovered a change in the behaviour of Style GET introduced by the
REST API Refresh.
Assume we have a GeoServer configuration as follows:
foo is the default workspace
There is a style named bar in foo
There is a style named baz in foo
There is also a global style named baz
In GeoServer <= 2.11:
GET /rest/styles/bar returns 404.
GET /rest/styles/baz returns the workspaced baz style (This is the
GEOS-8080 bug).
GET /rest/workspaces/styles/bar returns the bar style.
GET /rest/workspaces/styles/baz returns the workspaced baz style.
In GeoServer >= 2.12:
GET /rest/styles/bar returns returns the bar style (This is the behavioral
change).
GET /rest/styles/baz returns the workspaced baz style (This is the
GEOS-8080 bug).
GET /rest/workspaces/styles/bar returns the bar style.
GET /rest/workspaces/styles/baz returns the workspaced baz style.
I think we should probably revert 2.12 to the previous behaviour of
returning 404 when requesting a style that only exists in a workspace from
the /rest/styles endpoint.
Does anyone have a good reason why the new behaviour should be preserved?
Torben
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel