Repository navigation
Discard expiration date from result for non-link shares - #19122
Conversation
|
Confirmed working by @popov-d #11396 (comment) |
|
We should backport this, please confirm @karlitschek. |
|
makes sense. please backport 👍 |
|
Also, I see that it makes sense to remove it now as there is no way to use it properly. Code looks good (and simple)... so 👍 for that. But I'm not sure this is the right approach... on the other hand fixing it properly in share.php is probably not going to happen :P |
|
well ... great ... being able to expire user and group shares was possible in OC5. I thought we considered it a regression that it got removed. We have Users relying on that feature, so I brought it back at least via the ocs api because I expected this to get a proper ui in the new sidebar ... oh well we will just have to use #15459 as a patch and hope user and group share expires will be properly added in the next iteration. |
|
@butonic the current OCS API doesn't allow to set expiration date, did you use a patched one ? |
|
Hmmm right, then we might need an alternative fix, maybe we then need to fix this line https://github.com/owncloud/core/blob/master/lib/private/share/share.php#L2214 to make sure the expiration date is a DateTime object and not a String. |
|
@butonic are you ok with still moving forward with this PR ? I suggest to look into a cleaner solution for user share expiration as part of the share code revamp in 9.0, see #15459 (comment) |
|
@PVince81 happy to wait for 9.0 if that helps adds it properly. |
|
👍 |
|
stable8.1 backport: #19216 |
…nkshares Discard expiration date from result for non-link shares
Fixes #11396.
Note that this is only a quickfix that is backportable.
A clean fix should be done separately that prevents setting expirationDate for non-link shares in the first place and also repair the database to discard the entries that have it already. But as this is a bigger change, I chose to do a small fix first to make it backportable.
Please review @schiesbn @nickvergessen @rullzer