Allow to directly set the expireDate on a new (link)share#18651
Merged
Allow to directly set the expireDate on a new (link)share#18651
Conversation
Since this extends the API we now properly parse the date. We only accept valid ISO 8601 Dates (YYYY-MM-DD). Currently this only works for link shares (it is just ignored for other shares). Since we do not have user/group/federated expiring shares yet. * Tests added
Contributor
|
sweeet 👍 |
apps/files_sharing/api/local.php
Outdated
Contributor
There was a problem hiding this comment.
Add exception message "Invalid date" ?
Contributor
|
Works 👍, tested with this pyocclient branch: owncloud/pyocclient#120 |
Contributor
|
@rullzer can you fix the comments/strings, then feel free to merge |
Contributor
|
👍 It is working fine. |
* Added more intergration tests
21b996e to
2aff11c
Compare
|
A new inspection was created. |
Contributor
|
Raised doc ticket here: owncloud-archive/documentation#1615 |
PVince81
pushed a commit
that referenced
this pull request
Aug 30, 2015
Allow to directly set the expireDate on a new (link)share
Contributor
|
Now I wonder whether we should backport this. Anyway, API consumers (like pyocclient) will have to work with older OC servers that don't have this API implemented. |
Contributor
Author
|
@PVince81 yeah not trivial. But clients will need to handle it properly anyway. Since if sopmebody is still on 8.0.3 is should also work. So I do not think this has to be backported. Clients can check on version number. So that is probably simpler. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

As requested by @PVince81 in #14808 and again in #18631 (comment) ;)
Now it is possible to directly set the expiration date on shares.
TODO: