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

[full-ci] Expiration date limits for reshare of a received share #39452

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Nov 3, 2021

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

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

@update-docs
Copy link

update-docs bot commented Nov 3, 2021

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.

@ownclouders
Copy link
Contributor

💥 Acceptance tests pipeline apiShareReshareToRoot2-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/33554/75/1

@ownclouders
Copy link
Contributor

💥 Acceptance tests pipeline apiShareUpdateToShares-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/33556/80/1

@ownclouders
Copy link
Contributor

💥 Acceptance tests pipeline apiShareReshareToRoot2-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/33567/75/1

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few words of scenario description that can be changed next time you are touching the code.

@mmattel
Copy link
Contributor

mmattel commented Jun 17, 2022

@janackermann any progress on that? Seems a reasonable change that could go into 10.11

| 2 | no |
| ocs_api_version | default-expire-date | ocs_status_code | http_status_code |
| 1 | yes | 996 | 200 |
| 2 | yes | 500 | 500 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToDo: we should not expect a 500 HTTP or OCS status code. Needs to be sorted out.

| 1 | yes | 996 | 200 |
| 2 | yes | 500 | 500 |
| 1 | no | 996 | 200 |
| 2 | no | 500 | 500 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToDo: we should not expect a 500 HTTP or OCS status code. Needs to be sorted out.

| 2 |
| ocs_api_version | default-expire-date | ocs_status_code | http_status_code |
| 1 | yes | 996 | 200 |
| 2 | yes | 500 | 500 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToDo: we should not expect a 500 HTTP or OCS status code. Needs to be sorted out.

@ownclouders
Copy link
Contributor

💥 Acceptance tests pipeline apiShareReshareToRoot2-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/core/36072/76

@phil-davis phil-davis changed the title Expiration date limits for reshare of a received share [full-ci] Expiration date limits for reshare of a received share Jun 18, 2022
@phil-davis
Copy link
Contributor

I rebased this in #40263 - if that works nicely, we can probably close this old PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expiration date limits for reshare of a received share
4 participants