Hi All,

Does anyone know what's going on?

Best regards,


Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/


Em qua., 16 de mar. de 2022 às 10:49, Fernando Quadro <fsqua...@gmail.com>
escreveu:

> Hi All,
>
> I'm doing some tests with GeoFence (both GUI and REST), I got two problems
> that I'll list below, to see if you can help me.
>
> 1) When I try to add a rule with attributes via rest, they seem to be
> ignored in XML processing. I'm doing it as follows:
>
> curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d
> @geofence_restrict_fernandoquadro.xml
> http://localhost:8080/geoserver/rest/geofence/rules
>
> Where the geofence_restrict_fernandoquadro.xml file is like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Rule>
>       <userName>fernandoquadro</userName>
>       <workspace>topp</workspace>
>       <layer>states</layer>
>       <access>ALLOW</access>
>       <layerDetails>
>                 <layerType>VECTOR</layerType>
> <attribute>
>                         <name>STATE_NAME</name>
>                         <datatype>java.lang.String</datatype>
>                         <accessType>READWRITE</accessType>
>                 </attribute>
>                 <attribute>
>                         <name>STATE_ABBR</name>
>                         <datatype>java.lang.String</datatype>
>                         <accessType>READWRITE </accessType>
>                 </attribute>
> <attribute>
>                         <name>the_geom</name>
>
> <datatype>org.locationtech.jts.geom.MultiPolygon</datatype>
>                         <accessType>READWRITE</accessType>
>                 </attribute>
> <attribute>
>                         <name>PERSONS</name>
>                         <datatype>java.lang.Double</datatype>
>                         <accessType>READWRITE</accessType>
>                 </attribute>
> <cqlFilterRead>STATE_ABBR = 'FL'</cqlFilterRead>
>                 <cqlFilterWrite>STATE_ABBR = 'FL'</cqlFilterWrite>
>      </layerDetails>
> </Rule>
>
> 2) I'm using GeoServer 2.18.4, I make the security settings through
> GeoFence, and when I login with users (to which I applied some security
> restriction) I can see perfectly in the Layer Preview, however, when I
> change the version (to 2.19.5 and/or 2.20.3), the same data_dir, the Layer
> Preview is empty and I can't check the settings I made through the GUI.
>
> I noticed this at the beginning of my tests, when I reproduced the Krishna
> tutorial (
> https://medium.com/random-gis-talks/using-geofence-to-add-layer-level-security-in-geoserver-471493e4d80
> )
>
> Best regards,
>
>
> Fernando Quadro
> http://www.fernandoquadro.com.br
> https://www.linkedin.com/in/fernandoquadro/
>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to