You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the "temporary password" feature is enabled, passwords to access "sharedbymail" shares should always be sent via email when the user request them.
However, when unchecking the "send password by mail" checkbox in the settings for sharing, NC does not send that email anymore.
It seems that on some installations (NC 24.0 only? There was a bug related to this feature which has been fixed in e35cbd2), the temporary password is sent right away when the share is created, which, though not an issue per se, doesn't really make sense. Hence, there are people trying to use this feature expecting that by removing the check from the checkbox "send password by mail", the server will only send the password once the user requests it, and not at share's creation.
Steps to reproduce
Enable temporary password by setting the sharing.enable_mail_link_password_expiration setting at true in config.php
Uncheck the "send password by mail" checkbox in the settings for sharing
Share a file by email
open the share as the invited user (eg: in an ingognito session)
request a temporary password to access the share
The temporary password email is not sent
Expected behavior
The temporary password email should have been sent to the invited user
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?
A good fix might be to update the admin settings of the "sharebymail" app, and automaticaly uncheck the "send password by mail" setting and make it disabled with a message like "Temporary passwords are enabled on this instance, passwords are always sent by email to invited users upon request" when temporary paswwords are enabled (an alternative might be to simply uncheck and hides it in such case).
This also requires changes in the code to make sure that passwords are sent to invited users when they request them, altough the "send password by mail" setting is unchecked.
An easier solution would be to update the admin settings of the "sharebymail" app, and automaticaly check the "send password by mail" setting and make it disabled. This would therefore not require the code change to make sure that passwords are sent to invited users when they request them, although the "send password by mail" setting is unchecked. But, this should only be done if it is confirmed that no password email is sent directly upon share's creation in newest NC instances (which seems to be the case, at least on my devlopment box).
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!
Bug description
When the "temporary password" feature is enabled, passwords to access "sharedbymail" shares should always be sent via email when the user request them.
However, when unchecking the "send password by mail" checkbox in the settings for sharing, NC does not send that email anymore.
It seems that on some installations (NC 24.0 only? There was a bug related to this feature which has been fixed in e35cbd2), the temporary password is sent right away when the share is created, which, though not an issue per se, doesn't really make sense. Hence, there are people trying to use this feature expecting that by removing the check from the checkbox "send password by mail", the server will only send the password once the user requests it, and not at share's creation.
Steps to reproduce
sharing.enable_mail_link_password_expiration
setting attrue
in config.phpExpected behavior
The temporary password email should have been sent to the invited user
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?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
See also #31005 (comment)
The text was updated successfully, but these errors were encountered: