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

Set default expiration date if none given on share creation #22646

Merged
merged 1 commit into from
Feb 26, 2016

Conversation

rullzer
Copy link
Contributor

@rullzer rullzer commented Feb 25, 2016

When we create a share for the first time we should set the default
expiration date. If none is given.

This used to be the case. But I think I did it wrong when I reused it for updateShare as well.

Now there is a unit test for this.
Fixes #22642

@SergioBertolinSG is it possible to have intergration tests that test this part of the sharing API as well (so with the config stuff changing)?

@javiergonzper please verify this fixes it.

CC: @PVince81 @schiesbn @nickvergessen @MorrisJobke

When we create a share for the first time we should set the default
expiration date. If none is given.

Fixes #22642
@PVince81
Copy link
Contributor

I can't reproduce the original issue from the web UI, probably because the order of calls is different ?

The code makes sense.

@PVince81
Copy link
Contributor

Tested, works 👍

Here is the command to share a folder "test":
curl -X POST --data "path=test&shareType=3" http://admin:admin@localhost/owncloud/ocs/v2.php/apps/files_sharing/api/v1/shares

@xerc
Copy link

xerc commented Feb 25, 2016

please add "expireDate" to the "Create a new Share" API-function

@PVince81
Copy link
Contributor

@xerc #18651

@MorrisJobke
Copy link
Contributor

Tested and works 👍

DeepDiver1975 added a commit that referenced this pull request Feb 26, 2016
Set default expiration date if none given on share creation
@DeepDiver1975 DeepDiver1975 merged commit 0795cc3 into master Feb 26, 2016
@DeepDiver1975 DeepDiver1975 deleted the fix_22642 branch February 26, 2016 09:48
@lock
Copy link

lock bot commented Aug 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OC9 Share by Link with "Enforce expiration date" return 403 through
5 participants