-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Closed
Copy link
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofbugfeature: sharing
Milestone
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
The expiration of the password needs to bet adjusted after requesting a new password.
Before requesting:
MariaDB [nextcloud]> select id, fc.name, share_type, password_expiration_time from oc_share s left join oc_filecache fc on s.file_source=fc.fileid;
+----+----------+------------+--------------------------+
| id | name | share_type | password_expiration_time |
+----+----------+------------+--------------------------+
| 1 | testpre | 4 | NULL |
| 2 | testpost | 4 | 2022-04-12 20:44:11 |
+----+----------+------------+--------------------------+
2 rows in set (0.000 sec)
After requesting for both:
MariaDB [nextcloud]> select id, fc.name, share_type, password_expiration_time from oc_share s left join oc_filecache fc on s.file_source=fc.fileid;
+----+----------+------------+--------------------------+
| id | name | share_type | password_expiration_time |
+----+----------+------------+--------------------------+
| 1 | testpre | 4 | NULL |
| 2 | testpost | 4 | 2022-04-11 20:44:11 |
+----+----------+------------+--------------------------+
2 rows in set (0.000 sec)
The expiration date was not set for the first link and the second one stayed the same and was not refreshed to a future time.
Steps to reproduce
- Setup stable23
- Setup mailhog docker + configure SMTP to receive emails
- Create a folder "testpre"
- Share "testpre" by email with "vincent@example.org"
- Open the three dots and set a password "test123"
- Log out
- Upgrade to master
- Login as admin again
- Create a folder "testpost"
- Share "testpost" by email with "vincent@example.org"
- Open the three dots and set a password "test123"
- Log out
select * from oc_shareand take note- Open the link in the email for "testpre"
- Request a new password by entering "vincent@example.org"
- Open the link in the email for "testpost"
- Change the expiration date in oc_share to one day before
- Request a new password by entering "vincent@example.org"
- Check the database again
Expected behavior
In the table oc_share, before requesting a password:
- "testpre" has no password expiration date set
- "testpost" has a password expiration date set
In the table oc_share, after requesting a password:
- "testpre" and "testpost" should both have a password expiration set to a recent date instead of being stuck on the old state
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
Enabled:
- accessibility: 1.10.0
- activity: 2.16.0
- cloud_federation_api: 1.7.0
- comments: 1.14.0
- contactsinteraction: 1.5.0
- dashboard: 7.4.0
- dav: 1.22.0
- federatedfilesharing: 1.14.0
- federation: 1.14.0
- files: 1.19.0
- files_external: 1.16.1
- files_sharing: 1.16.2
- files_trashbin: 1.14.0
- files_versions: 1.17.0
- lookup_server_connector: 1.12.0
- nextcloud_announcements: 1.13.0
- oauth2: 1.12.0
- photos: 1.6.0
- provisioning_api: 1.14.0
- recommendations: 1.3.0
- serverinfo: 1.14.0
- settings: 1.6.0
- sharebymail: 1.14.0
- survey_client: 1.12.0
- systemtags: 1.14.0
- theming: 1.15.0
- twofactor_backupcodes: 1.13.0
- updatenotification: 1.14.0
- user_status: 1.4.0
- viewer: 1.8.0
- weather_status: 1.4.0
- workflowengine: 2.6.0
Disabled:
- admin_audit
- bruteforcesettings
- calendar
- contacts
- deck
- email_template_example-0.0.1
- encryption
- files_3d
- files_accesscontrol
- files_antivirus
- files_automatedtagging
- files_downloadlimit
- files_retention
- files_texteditor
- files_versions_s3
- groupfolders
- guests
- mail
- music
- officeonline
- password_policy: 1.14.0
- previewgenerator
- ransomware_protection
- registration
- richdocuments
- shareimporter
- sharepermissions
- spreed
- support: 1.7.0
- suspicious_login
- terms_of_service
- testing
- twofactor_totp
- user_ldap
- user_migration
- user_saml
- workflow_scriptNextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
stable23 was 8ec5401
master on df14579 which includes #31220
Metadata
Metadata
Assignees
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofbugfeature: sharing