gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
196 stars 77 forks source link

not able to modify users in version 2.8.2 #163

Closed pesekon2 closed 1 month ago

pesekon2 commented 1 month ago

Using the function modify_user() in version 2.8.2 ends up in the following error:

> a.modify_user('admin', 'new')
http://localhost:8080/geoserver/rest/security/usergroup/user/admin <?xml version="1.0" encoding="utf-8"?>
<user><userName>new</userName></user>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/dist-packages/geo/Geoserver.py", line 3004, in modify_user
    r = self._requests.post("post", url, data=data, headers=headers)
AttributeError: 'function' object has no attribute 'post'