core
core copied to clipboard
[full-ci] Expiration date limits for reshare of a received share
Description
With this change, if a user re-shares an existent share with an expiration date, the expiration date of the target share will be taken for the new share, if the user doesn't provide an expiration date.
If the expiration date is provided and exceeds the date of the target share, an error will be thrown.
Related Issue
- Fixes https://github.com/owncloud/core/issues/37013
Motivation and Context
How Has This Been Tested?
- test environment:
- test case 1:
- test case 2:
- ...
Screenshots (if appropriate):
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Database schema changes (next release will require increase of minor version instead of patch)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Technical debt
- [ ] Tests only (no source changes)
Checklist:
- [ ] Code changes
- [ ] Unit tests added
- [ ] Acceptance tests added
- [ ] Documentation ticket raised:
- [ ] Changelog item, see TEMPLATE
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.
:boom: Acceptance tests pipeline apiShareReshareToRoot2-mariadb10.2-php7.4 failed. The build has been cancelled.
https://drone.owncloud.com/owncloud/core/33554/75/1
:boom: Acceptance tests pipeline apiShareUpdateToShares-mariadb10.2-php7.4 failed. The build has been cancelled.
https://drone.owncloud.com/owncloud/core/33556/80/1
:boom: Acceptance tests pipeline apiShareReshareToRoot2-mariadb10.2-php7.4 failed. The build has been cancelled.
https://drone.owncloud.com/owncloud/core/33567/75/1
@JanAckermann any progress on that? Seems a reasonable change that could go into 10.11
:boom: Acceptance tests pipeline apiShareReshareToRoot2-mariadb10.2-php7.4 failed. The build has been cancelled.
https://drone.owncloud.com/owncloud/core/36072/76
I rebased this in #40263 - if that works nicely, we can probably close this old PR.