After upgrading to Geoserver 19.6 styles were no longer be applied to Vector 
layers but continue to work of Raster layers. We passed the style descriptor 
using an URL on the sld parameter. The style descriptor includes the workspace 
name as part of the style name.

workspace_name:layer_name

The issue seems to be caused by a change in a file LocalWorkspaceCatalog.java 
at line 480 where a call to method wrapNested() was added. This change meant 
calls made to get the LayerInfo/ResourceInfo, the workspace name wasn't 
returned for Vector layers but is still returned for Raster layers. Without the 
workspace name being returned, Geoserver doesn't match the style and uses the 
default style. To get around the problem I set the workspace configuration 
option "Include Layer Prefix in Local Workspace Capabilities" in the UI.

The fact that the behavior is different between Vector and Raster layers seems 
to be a bug but wanted to ask to make sure. There seems to be 2 possibilities


  1.  I should have always set the "Include Layer Prefix in Local Workspace 
Capabilities”, but the option is not being handled correctly for Raster Layers. 
It was fixed for Vector layers.
  2.  The changed inadvertently broke Vector layers and was intended to only 
deal with FeatureTypeInfo. The code is going thru the FeatureTypeInfo path when 
handling Vector layers.

Has anybody else ran into this issue? I haven't been able to find any 
documentation on the "Include Layer Prefix in Local Workspace Capabilities" 
option.

Thanks
   Bob

Robert Goodman – goodm...@us.ibm.com
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to