Skip to content

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

6 participants