-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharing a directory #218
Comments
same problem, any progress on this? |
it should work with directories as well and I believe some of the unit tests also do so. please specify what OC version you are using and also check owncloud.log for server side errors |
someone reported the same error when sharing files: #214 so this is not related to sharing folders but sharing in general, please verify the server env for errors |
First of all: I am using nextcloud 16.05 on a ubuntu/snap installation. After I done . a little digging into the problem I found out that
I checked the Nextcloud API and the request format seemed to be ok. I can't get to the bottom of this, but hopefully the information above might help someone else get to it. |
Have faced the same issue. For my particular purposes (need only the URL of share), it is enough to slightly adapt the method share_file_with_link. In particular, replace the part: |
Ah, it is possible that Nextcloud did not implement giving names to public links. A fix would be to add an if condition there to check if that attribute is set or not, and ignore if it's not. |
it seems the original report was about the id field, which I believe should exist in both OC and NC. the proposed fix could be applied to both fields, just in case |
hi |
Seeing the exact same error with |
I have solved this issue within installing version 0.4 of pyocclient pip3 install pyocclient==0.4 |
@sergey-sc: Thanks, your workaround is working. |
I ran into other problems while downgrading, so I implemented a basic fix instead. |
Hi. I face the same problem as the topic. I see there is a commit, but the library i install (the last one) does not have that changes in it. Could you redo the commit? |
having same issue with pyocclient==0.6 and nextcloud==28.0.8 |
Same here. |
When attempting to share a directory:
share_link = oc.share_file_with_link(directory)
I get
'id': data_el.find('id').text,
AttributeError: 'NoneType' object has no attribute 'text'
I know that the function explicitly talks about files, but documentation says I can share directories and there is not a share_directory_with_link function so I am working on basis that this function should work.
Error refers to line 833 - data=post_data
and post data is created on 818
post_data = {
'shareType': self.OCS_SHARE_TYPE_LINK,
'path': self._encode_string(path),
}
Any ideas?
The text was updated successfully, but these errors were encountered: