nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.91k stars 4.02k forks source link

[Bug]: Sharing via email errors with missing password #48468

Open darkdragonuk opened 5 days ago

darkdragonuk commented 5 days ago

⚠️ This issue respects the following points: ⚠️

Bug description

When trying to share folder via an email address, with enforced passwords on sharing, clicking on the share button causing the password box to go blank, flash a red border but still save. The share will not work due to having a missing password. If you go in and edit the share and make a new password, the share will start to work again.

Steps to reproduce

1.From the root view of the folders, click on share icon image 2 Enter in a valid email address and click the email box below. image

  1. Form is prefilled and generated password is viewable when clicking show/hide password eye. image
  2. Click on "Save Share" the password box empties and has a red border around it image
  3. If you go in and edit the share, there is still a red box around the password box and an email was not sent. image
  4. Entering a new password and clicking "Update share" will add the new, manually entered password and email the password to the email address.

Expected behavior

The auto generated password should be saved and emailed to the email address.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 28.0.1 to 28.0.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

Edge Version 129.0.2792.65 (Official build) (64-bit) Chrome Version 129.0.6668.71 (Official Build) (64-bit)

Mika-6-9 commented 4 days ago

Related: https://github.com/nextcloud/server/issues/46914