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

user and group expiration dates do influence each-other #3174

Closed
kiranparajuli589 opened this issue Mar 12, 2020 · 3 comments
Closed

user and group expiration dates do influence each-other #3174

kiranparajuli589 opened this issue Mar 12, 2020 · 3 comments
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug Something isn't working

Comments

@kiranparajuli589
Copy link
Contributor

kiranparajuli589 commented Mar 12, 2020

Steps to reproduce

  1. Enable shareapi_enforce_expire_date_group_share and shareapi_enforce_expire_date_user_share
sudo -u www-data ./occ config:app:set core shareapi_enforce_expire_date_user_share --value=true
sudo -u www-data ./occ config:app:set core shareapi_enforce_expire_date_group_share --value=true
  1. Set different default expiration for user and groups
  • shareapi_expire_after_n_days_group_share to say 10
  • shareapi_expire_after_n_days_user_share to say 20
  1. Create a user user0 and a group grp1, add the user to the group
  2. Now try to create a collaborator share

Expected behaviour

Sharing using collaborator user0 should provide expiration days options 20 days beyond current day

Actual behaviour

Sharing using collaborator user0, expiration days options for only 10 days beyond current day
Screenshot from 2020-03-12 11-35-35

Note

  • Sharing using group as collaborators works fine (expiry dates are enabled/disabled as per settings)
  • Sharing using user as collaborators works fine (expiry dates are enabled/disabled as per settings) when editing the created share

Server configuration

latest phoenix master
latest core master

@kiranparajuli589 kiranparajuli589 changed the title Different defaults for expiration in collaborators share Different defaults for expiration in collaborators share behaving Mar 12, 2020
@kiranparajuli589 kiranparajuli589 changed the title Different defaults for expiration in collaborators share behaving Different defaults for expiration in collaborators share behaving unusual Mar 12, 2020
@kiranparajuli589

This comment has been minimized.

@individual-it individual-it changed the title Different defaults for expiration in collaborators share behaving unusual user and group expiration dates do influence each-other Apr 9, 2020
@lookacat lookacat added Type:Bug Something isn't working Web-Fastlane labels Oct 14, 2021
@lookacat
Copy link
Contributor

lookacat commented Oct 14, 2021

We found while working on #5806 that the CollaboratorsEditOptions on both the New and EditShare component. On the new component initially the shareTypes are empty so its always taking the smaller value because it doesn't check the shareTypes that are present once edits are made.
To prevent this we need to watch which share types are present and find the smaller maxExpirationDate to prevent this bug.
Also we need to add integration tests for this case.

@kulmann kulmann added the Priority:p1-urgent Consider a hotfix release with only that fix label Dec 3, 2021
@kulmann kulmann added Priority:p2-high Escalation, on top of current planning, release blocker and removed Priority:p1-urgent Consider a hotfix release with only that fix labels Dec 13, 2021
@kulmann
Copy link
Member

kulmann commented Feb 17, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants