Skip to content
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

[Backport 2021.02.xx] #7422: StyleEditor plugin must not rely on the workspace prefix inside the style names returned by GetCapabilities #7447

Merged

Conversation

allyoucanmap
Copy link
Contributor

Description

This PR replaces the request GetCapabilities of the style editor with a rest/layers request to get the correct styles information. If the rest/layer request fails it fallback to GetCapabilities request to enable the styles selector

The Style Editor will work only with the styles included in the same workspace.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

Issue

What is the current behavior?

#7422

What is the new behavior?

Styles can be edited and deleted if the users have permission

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

Other useful information

…ce prefix inside the style names returned by GetCapabilities (geosolutions-it#7423)

* replace get capabilities request with GeoServer rest api to get information about styles

* get missing styles information from get capabilities

* store the current default style name

* remove restriction on workspace for editing
@tdipisa tdipisa merged commit d72f4bb into geosolutions-it:2021.02.xx Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants