| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
When one of the query parameters is, for instance, owner, app or sharing, as when sending a POST request to the + /acl for updating permissions, this call would normally fail because those are stripped out of the actual self.http.post() and used only for self._abspath(). This is a workaround for calling post() with those parameters starting with __. The query dict is then rebuilt stripping the __ so that in the end both self._abspath() and self.http.post() can receive owner, app and sharing arguments.
This access_update() uses service.post() as changed in 0724a3d
|
Hum, this is breaking now because there are calls like post(__conf=name), would have to think of another prefix or something. |
Sorry, something went wrong.
Use _dup__ as per service.post for app/sharing/owner arguments that need to be sent to http.post()
|
Ok I'll look into the tests better later to see what's happening but it still seems to be due to the prefix addition/strip. |
Sorry, something went wrong.
my bad, lstrip() clearly doesn't make sense as it takes chars as arguments not a full prefix so 'password'.lstrip('_dup__') == 'assword'
missed .get on self.access for 'sharing'
|
I believe this has been addressed in #352 and now released as https://github.com/splunk/splunk-sdk-python/releases/tag/1.6.15 please upgrade via pip install splunk-sdk==1.6.15 and let us know if you continue to see these issues. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Could anyone please check if this would be ok for fixing #207 ?
Uses __ for service.post() on binding.py for arguments like app, owner, sharing needed for example for post requests to the /acl path for changing permissions and also adds an access_update() to client.py so that the client can transparently call an update in permissions without having to use the __ in the start of those arguments.
At least I believe this approach won't cause a breaking change by changing the method signature as said by @tdhellmann on #208