Skip to content

Edit Map Details as USER role will fail saving if resource is within group #11242

@ale-cristofori

Description

@ale-cristofori

Description

This issue happens when a user is logged in with a USER role , does not seem to be happening with a ADMIN role. Also, it happens from the second time the user performs the steps below, the first time it is not possible to see it.
On DEV there is a test map for testing the bug
https://dev-mapstore.geosolutionsgroup.com/mapstore/#/viewer/56007

The issue only happens if

  • A user is logged in with a USER role.
  • The resource in question (map) must be assigned to a group, otherwise no issue will happen
  • On the second attempt, the first one will not show the issue.

How to reproduce

  • Open this map https://dev-mapstore.geosolutionsgroup.com/mapstore/#/viewer/56007
  • Click on the map properties editing button (top left)
  • The edit properties window will appear.
  • Switch to the 'Permissions' tab ---> very important because if this step is not done the but will not show
  • Switch to the 'About' tab, edit some data clicking on the button pencil
  • Change the text click on edit button again to confirm changes.
  • Click on the "Save" button, top left of the map

Expected Result
The map should successfully save with the edits edited by the user.

Current Result
AN error message appears, saying the map is not correctly save, though if the page is refreshed it is possible to see the edits are saved.

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

recording_1.mp4

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions