Skip to content
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

OCS Share API for share creation is missing expiration date #14808

Closed
PVince81 opened this issue Mar 11, 2015 · 6 comments
Closed

OCS Share API for share creation is missing expiration date #14808

PVince81 opened this issue Mar 11, 2015 · 6 comments

Comments

@PVince81
Copy link
Contributor

Currently to create a link share with expiration date, one needs to first create public share without it, and then update it with the expiration date.

See that the API https://doc.owncloud.org/server/7.0/developer_manual/core/ocs-share-api.html#create-a-new-share doesn't contain a "expireDate" field (also missing in the source code).

Only update has it: https://doc.owncloud.org/server/7.0/developer_manual/core/ocs-share-api.html#update-share

On a side note: I also wonder if "publicUpload" should be incorporated into the permissions instead...

@PVince81
Copy link
Contributor Author

@schiesbn is there a reason (maybe technical limitation) why "expireDate" was omitted ?

@rullzer
Copy link
Contributor

rullzer commented Mar 22, 2015

@PVince81 the public upload is internally already handled as a permission update.

Probably would make sense to move away from that indeed as to minimize the special handling of public links.

@rullzer
Copy link
Contributor

rullzer commented Mar 22, 2015

Seems that it should not be to hard to add the argument to the create new share command.

I have it working now. But we need some more sanity checking in share.php. I'll have a look later this week.

@oparoz oparoz added the dev:ocs label Jun 25, 2015
@rullzer
Copy link
Contributor

rullzer commented Jul 24, 2015

Ok after digging into this adding it to the OCS endpoint should not be that hard. There even in an expirationDate agument for shareItem. But it is pretty untested (non of the calls in test/lib/share/share.php actually use it)

So lets keep this on the list for sharing 2.0 but for now I do not really feel comfortable adding it if the backend code is somewhat untested...

@PVince81
Copy link
Contributor Author

backlog then

@PVince81
Copy link
Contributor Author

Closed by #18651

@MorrisJobke MorrisJobke modified the milestones: 8.2-current, backlog Sep 13, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants