You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging I can see that the path accessed is /public.php/webdav... which is incorrect for OC 10.8.0. Looking at the code I can see that there's a parameter dav_endpoint_version which should influence the path that is used. However, using oc = owncloud.Client.from_public_link(url, folder_password=password, dav_endpoint_version=1) doesn't do anything useful. Is this a bug or am I doing something wrong? Can you give me a hint? Thanks for your help!
The text was updated successfully, but these errors were encountered:
The code doesn't work for the latest ownCloud versions it seems. I'm no ownCloud expert so I don't know exactly why but calling self._update_capabilities() doesn't work for public links with password. So this doesn't seem to be an option like it is in login(). The only way to deal with this from my (naive) point of view is by patching anon_login something like this:
This way, setting the parameter dav_endpoint_version=1 will call the correct path / URL with the correct username and password. This works for me but I don't know if that's the right way to do it. Someone with more OC experience should have a look whether or not there's some other way to do a self._update_capabilities() call for public links.
Hi all,
I'm trying to drop a file to a public, password protected share:
When debugging I can see that the path accessed is
/public.php/webdav...
which is incorrect for OC 10.8.0. Looking at the code I can see that there's a parameterdav_endpoint_version
which should influence the path that is used. However, usingoc = owncloud.Client.from_public_link(url, folder_password=password, dav_endpoint_version=1)
doesn't do anything useful. Is this a bug or am I doing something wrong? Can you give me a hint? Thanks for your help!The text was updated successfully, but these errors were encountered: