[Geoserver-users] GeoServer WMS Styles parameter with workspace prefix

Hello,

I’m having a hard time selecting a style which is assigned to a workpace on a WMS request. For some reason when I add the workspace into the “styles” parameter it doesn’t work. I’m pretty sure I’m missing something here so I request your help.

I need this because I want to give the option for the user to create new layers in a separate workspace but still use the default styles available. Cloning the available styles into the temporary workspace is a solution, but isn’t pretty.

Working WMS Request: (notice styles parameter with no workspace prefix)

geoserver/my_tmp_workspace/wms?service=WMS&version=1.1.0&request=GetMap&layers=my_tmp_workspace:tmp_20150220144548769&styles=mi_tmp_polygon&bbox=-9.2109203338623,38.7190681092663,-9.16414260864258,38.7726885559786&width=446&height=512&srs=EPSG:4326&format=application/openlayers

Non-working WMS Request: notice styles parameter with a workspace prefix)

geoserver/my_tmp_workspace/wms?service=WMS&version=1.1.0&request=GetMap&layers=my_tmp_workspace:tmp_20150220144548769&styles=my_tmp_request:mi_tmp_polygon&bbox=-9.2109203338623,38.7190681092663,-9.16414260864258,38.7726885559786&width=446&height=512&srs=EPSG:4326&format=application/openlayers

Thank you for your time and help,

Cosme