-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapStore must not rely on the workspace prefix inside the style names returned by GetCapabilities #519
Comments
@giohappy I'm investigating client side to understand how to fix this behaviour but there are some cases where it's not possible recognize the correct workspace for example when a layer uses style from the global styles/ folder mixed with other from a specific workspace. case
|
this is a good question. We should ask the Geoserver team. |
@giohappy the answer is that we cannot rely on get capabilities to get information about the workspace of a style but we should use the geoserver rest api instead. |
@allyoucanmap so another request to do... |
@allyoucanmap apparently the problem also happens with the new 2.18.x, the one updated for the current GN 3.2.x. Can you please give it a look urgently? |
For the moment we're stuck since responses from the GetCapabilities can be ambigous in case multiple styles with the same name are assigned to a layer. There's no way to tell which layer is what. For GeoNode we could base the solution on the metadata returned by the GS REST API but we have a problem with the double requests that are currently needed to set the metadata for a new layer. At the moment the only way to distinguish styles with same name from multiple workspaces is to do a global GetCapabilities, which is far from optimal of course. @simboss we need to discuss an alternative solution together with the Geoserver team I guess. |
@allyoucanmap do you think we can port the fix to the mapstore client quickly? |
@giohappy yes, starting to work on it |
… names returned by GetCapabilities (#533)
I guess this can be close @allyoucanmap right? |
@giohappy yes |
Geoserver 2.19.x fixed a wrong behaviour where style names isnide workspace-specific GetCapabilities reponse were returned with the workspace prefix.
MapStores Styled editor relied on this prefix for its functionalities, which now are broken with Geoserver 2.19.x.
Another method must be designed to retrive the fully qualified name of the style (workspace + style name).
The text was updated successfully, but these errors were encountered: