Skip to content

Ensure unique name in available style while update the default one #3768

@allyoucanmap

Description

@allyoucanmap

Description

Server could update incorrectly If the available styles have dublicated entry while updating the default.

In case of Bug (otherwise remove this paragraph)

Browser Affected
(use this site: https://www.whatsmybrowser.org/ for non expert users)

  • Internet Explorer
  • Chrome
  • Firefox
  • Safari

Browser Version Affected

  • all

Steps to reproduce

  • user needs to login as admin, MapStore configured with GeoServer to edit styles and enableSetDefaultStyle flag true (GeoNode - Integration)
  • open a map with a layer (or a layer in GeoNode and select edit style)
  • select layer in TOC and open the properties (should be open automatically in GeoNode)
  • select style tab and create a new style from template (should be open automatically in GeoNode)
  • create a ne style from template list
  • select the new style and set as defeult (star button in toolbar)
  • after loading new style as a start icon (it means is the new default)
  • save an close the settings
  • open layer settings in style section again

Expected Result

  • all previous style are visibile and the default is the one just updated

Current Result

Other useful information (optional):

It can be tested only in GeoNode integration.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions