question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

share_file_with_user error

See original GitHub issue

oc.share_file_with_user( "/home/prc/oc/path", "ee14ea28-b869-1036-8080-9dbd8c6b1579@b2drop.eudat.eu");

Gives me following error:

  File "test.py", line 19, in <module>
    oc.share_file_with_user( "/home/prc/oc/path", "ee14ea28-b869-1036-8080-9dbd8c6b1579@b2drop.eudat.eu");
  File "/usr/local/lib/python2.7/dist-packages/owncloud/owncloud.py", line 1246, in share_file_with_user
    self._check_ocs_status(tree)
  File "/usr/local/lib/python2.

I have around 200 files to share. By GUI it is takes very long time to share each one by hand 😦

[Q] How could I fix this error? Thank you for your valuable time and help.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
remjgcommented, Jul 13, 2017

After looking at the source code, everything seems to be ready for sharing with federated users. In order to do that, you have to use the keyword argument remote_user=True.

Example:

oc.share_file_with_user('myfile', 'user@domain.fr/owncloud/', remote_user=True)

Be careful with the final /, it doesn’t work without it ! Hope that helps !

Rémi.

1reaction
PVince81commented, Jun 23, 2017

A function is missing to share with federated users, to be added later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Class: Shares - JSDoc - ownCloud
The Shares class, has all the methods for share management. Supported Methods are: Share Management. shareFileWithLink; updateShare; shareFileWithUser ...
Read more >
SharePoint 2016 Can't Share files beetwen users. - TechNet
SharePoint doesn't have any errors in Event Viewer. For Example if i try Share different ... User Dart Vaider share file with User...
Read more >
Can not decrypt file on mobile client · Issue #1711 - GitHub
Enable encryption. Share file with user. Try download file from mobile client (Android/iOS) Can this problem ...
Read more >
Problem with file sharing on LAN - Network - CCM
Hello, I'm having a big problem, I set up a LAN in my house with my desktop ... file sharing or share file...
Read more >
Preview a File - HelpDocs
Share: Share file with user or create a link. Download PDF: There are multiple ways to download the original, but only one way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found