problems editing geometries WFS-T

175 views
Skip to first unread message
Assigned to lorenzo...@geosolutionsgroup.com by me

Isidro Puig

unread,
Jul 18, 2023, 3:39:44 PM7/18/23
to mapstore-users
I have the following problem. I have installed and running (on local) mapstore, geoserver (both in Tomcat), postgresql+postgis in a Virtual BOX 7 virtual machine (OS Ubuntu server 22).

I have encountered some problems with geometry editing functionality. It's not working for my multipolygon/multilinestring layers. It works for my point layers. 

Moreover, mapstore pops up these error message: 
1- 'Update error: Error occured updating features'
2- '{http://www...}layer_name is read only}'

Of course I have enable WFS in my workspace (Geoserver).

Service access rules set up (Geoserver):  (*.*/wfs.*/wms.*). 

Data security set up (5 rules) (Geoserver):
-   *.*.r  (ROLES: *)  
-   *.*.w (ROLES: ROLE_AUTHENTICATED, GROUP_ADMIN, ADMIN, ROLE_ANONYMOUS)
-   ssr_loslagos.*.r  (ROLES: ADMIN) 
-   ssr_loslagos.*.w  (ROLES: ADMIN) 
-   ssr_loslagos.*.a  (ROLES: ADMIN) 

Access to mapstore as ADMIN.

What am I missing??

Thanks!

Isidro Puig

unread,
Jul 18, 2023, 3:48:14 PM7/18/23
to mapstore-users
More info about my error: 

In those layers where I get error  'Update error: Error occured updating features', I can edit Attribute Table. it's only a multilinestring layer.
In those layers where I get error   '{http://www...}layer_name is read only}' , I can't edit Attribute Table.

* Sorry but I won't let me upload sample images in this messenger service

Lorenzo Natali

unread,
Jul 21, 2023, 9:45:10 AM7/21/23
to mapstore-users
Hi,
Editing from MapStore can work only if MapStore and GeoServer are integrated. 

Make you sure you integrated GeoServer with MapStore correctly, following ALL the steps here:

Isidro Puig

unread,
Jul 24, 2023, 3:03:20 PM7/24/23
to mapstore-users
Hi again, 

I tried to follow those steps you point me. Tried to configure Geostore and don't worked for me, and threw me an error.
My last steps was 'Setup User Group Service' and 'Setup role Service'.  Then, don't let me (didn't appear drop down list)  
'select Administrator role to ADMIN' neither 'select Group Administrator Role to ADMIN'.

Finally, today starting my job, I couldn't log into Geoserser with my default administrator user (admin: 'geoserver'). So, I have deleted 
all configurations (from Geoserver directory) related to Geostore, and as result, could log into Geoserver again. 

I'm like at the beginning. 
Any idea please?

Thanks!

Lorenzo Natali

unread,
Jul 25, 2023, 9:37:19 AM7/25/23
to mapstor...@googlegroups.com
Hi,
the MapStore user integration is quite long and full of details, missing one step can happen.
If you weren't able to select the roles, probably something got wrong in the previous steps. 


--
You received this message because you are subscribed to the Google Groups "mapstore-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/974bbc1f-b126-4de8-9d55-aa5560c38df8n%40googlegroups.com.

Isidro Puig

unread,
Jul 26, 2023, 5:21:13 PM7/26/23
to mapstore-users
Problem solved. Finally wasn't integration problem Geoserver-Mapstore, but layer was giving me problems had a MultilineStringZ geometry type. So, changed to MultilineString without Z values, and now it's working (can edit geometries). 

But, it appears to me another problem. I need to restrict edition of geometries (specific layer) to specific users, and grant editing access to specific user. Tried to do through Geoserver, mixing service security access (rule wfs.Transaction:my_grant_role) and data security access (my_workspace.my_layer.w). However, from Mapstore, I continue to having editing capacities to all users.   
What would be the way?

Thanks!

Lorenzo Natali

unread,
Jul 27, 2023, 12:32:49 PM7/27/23
to mapstor...@googlegroups.com
Hi,
What do you mean by "editing capabilities"? 
If you have the integration between MapStore and  GeoServer, the admin user of MapStore will be the admin user of GeoServer too, with all the access granted. The other users will have the permissions given to their group (that becomes a role on GeoServer) and you can assign permissions in this way to the layers.
In fact the edit button appears only to admins by default. If you configure it differently, you can enable visibiity of edit tool also for normal users, but you will receive an error when trying to save data on a layer that is not allowed by GeoServer. 
Make sure to do the correct test on MapStore in the incognito window, without even opening the web interface of GeoServer. The cookie of geoserver login session may identify you as a different user and allow you operations that are normally denied.

You received this message because you are subscribed to a topic in the Google Groups "mapstore-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mapstore-users/fr75lVoEi9s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mapstore-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapstore-users/15b8b9a5-9b9b-4e9b-ace6-c977d2fcbc80n%40googlegroups.com.

Isidro Puig

unread,
Aug 3, 2023, 11:38:04 AM8/3/23
to mapstore-users
Hi, 


By "editing capacities" I mean ability to edit geometries through WFS-T to all users (mapstore).
Anyway, it looks like I got it, and now works.  

When I try to edit geometries in mapstore logged as user, pops up window to insert credentials for a specific geoserver user with edit permissions, it works. If user doesn't have permissions 
throw me an error. 
Apparently there is some kind of delay after applying restrictions (in my case), and I need close chrome, and open it again incognito mode to verify that is working. 

Thanks Lorenzo for your help.

Lorenzo Natali

unread,
Aug 4, 2023, 6:58:26 AM8/4/23
to mapstor...@googlegroups.com
Hi,
good to know. Let us know if you need more info.
Thank you for using MapStore.

Reply all
Reply to author
Forward
0 new messages