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
The current OCS Sharing API v1 is in need of successor.
Sharing 2.0 #19331 Adds multiple share providers. This means that a simple generic ID is no longer sufficient. And we will switch to an id like 'providerId:shareId'.
@PVince81 , another information that I find useful from a received share is the identification of the sharer. The web UI shows it clearly when the "share" icon is pressed, no matter if the user then reshares or not.
make it possible to get shares by file id instead of path: new attribute ? This could improve performance as the backend won't need to resolve the path, but then it also needs to check whether the user is allowed to access that file...
% curl -X GET 'http://root:admin@localhost/owncloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=abc&subfiles=true&format=json'
is the only way to quickly get the share status for files within a folder.
This is already used by the mobile client and possibly desktop client to be able to display status icons.
However it can be wasteful when a single file/folder is shared with 100 users, in which case it returns 100 entries all pointing at this file/folder.
Ideal would be to have a summary mode, either as extra attribute "groupresults=true" or "summary=true" or a separate endpoint to query such status.
summary mode / grouping of results by path to save response size
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
Activity
PVince81 commentedon Jan 20, 2016
Do I understand it well that most important part of this is making the reshare permissions properly available to the clients ?
Are there other requirements from the clients ?
@davivel @SergioBertolinSG @jvillafanez
rullzer commentedon Jan 20, 2016
For the clients yes. But the id=>string is important to properly allow 3rdparty share providers
PVince81 commentedon Jan 21, 2016
davivel commentedon Jan 22, 2016
@PVince81 , another information that I find useful from a received share is the identification of the sharer. The web UI shows it clearly when the "share" icon is pressed, no matter if the user then reshares or not.
Anyway, this is maybe more specific of #21179...
PVince81 commentedon Jan 22, 2016
@rullzer didn't you add these lately ?
davivel commentedon Jan 22, 2016
@rullzer , @PVince81 , I closed #21779 in favor of #21855. I think it's clearer.
PVince81 commentedon Jan 22, 2016
PVince81 commentedon Jan 22, 2016
PVince81 commentedon Jan 25, 2016
PVince81 commentedon Jan 26, 2016
Currently, this call
% curl -X GET 'http://root:admin@localhost/owncloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=abc&subfiles=true&format=json'is the only way to quickly get the share status for files within a folder.
This is already used by the mobile client and possibly desktop client to be able to display status icons.
However it can be wasteful when a single file/folder is shared with 100 users, in which case it returns 100 entries all pointing at this file/folder.
Ideal would be to have a summary mode, either as extra attribute "groupresults=true" or "summary=true" or a separate endpoint to query such status.
rullzer commentedon Feb 18, 2016
Before any sharing we want to know the max permissions:
We should have an endpoint that returns the proper permissions for a path. Combined with a specific share type.
rullzer commentedon Feb 26, 2016
Currently when we disable the Sharing API we just don't return anything.
We should return a 403 or something.
rullzer commentedon Mar 7, 2016
rullzer commentedon Mar 7, 2016
Possible solution in #22834
It uses webdav but that is cleaner anyway IMO
rullzer commentedon Apr 1, 2016
#22834 is in
ownclouders commentedon Jan 13, 2018
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.(This is an automated comment from GitMate.io.)