Problem in the Behavior of "Set password"

After checking “Set password”,the message “Password created successfully” appears.However, at that moment the password field does not display the password,even though it seems the password has already been internally set.

If I click either “Update share” or “Cancel” and then reopen “Customize link”,
the password is shown in the password field.

Could the created password be displayed in the password field immediately
when “Password created successfully” appears?

It also seems that the settings under Advanced settings are saved immediately after being changed,
and that the Cancel button does not affect any items within Advanced settings.
The Cancel button appears to work only for the settings under
“View only,” “Allow editing,” and “Custom permissions.”

Could the Cancel button also be made effective for items in Advanced settings?

If I click either “Update share” or “Cancel” and then reopen “Customize link”,
the password is shown in the password field.

Could the created password be displayed in the password field immediately
when “Password created successfully” appears?

It also seems that the settings under Advanced settings are saved immediately after being changed,
and that the Cancel button does not affect any items within Advanced settings.
The Cancel button appears to work only for the settings under
“View only,” “Allow editing,” and “Custom permissions.”

Could the Cancel button also be made effective for items in Advanced settings?

It is just a problem when adding a password to an existing shared folder, or when I update the password of a share with password? There is no problem if you create a password-shared folder completely new?

Which version of Nextcloud?

The version of Nextcloud is 32.0.3

After checking “Set password”,the message “Password created successfully” appears. Then I can show the password and copy the password text. But once I push the “Update Share” button, the password vanish and I can’t confirm the passowrd. Is this correct behaviour? Many users of my NextCloud server asked me about it.

If you still have created it and it is in the field, the data is still in the field, so you can make it visible. The server does not save the password itself, it just stores the hash value of it in the database.

So later, if you later go on the share and the password was already set earlier, it cannot show you the original value (but if you give the password, the server can easily check if the hash value is the same). So if you haven’t noted the password down, you can only set a new password. Background: Cryptographic hash function - Wikipedia

Thank you for your explanation.
It makes sense.

I will let my users follow the following procedure.

  1. Copy a Share Link and paste it to somewhere.
  2. Check the “Set Password”.
  3. Copy the password soon after it is automatically created and paste it to somewhere.
  4. Click the “Update Share“ button.

I found an other issue. I can’t uncheck the “Set password”.

I unchecked the “set password” and clicked the “Update Share” button, but it is still checked in the customize link settings.

This sounds like a bug I think. Can you report it to GitHub · Where software is built?

Thank you for your reply.
I will do it.

I found a new issuer with “Set password”.

Some user of NextCloud said that a password is not shown in the password box after the message “Password created successfully” appeared”, even if they waited for a minute. But then, if they push the “Cancel” button of “Customize Link”, open the “Customize Link” again and they can see the password”. They are using the latest Edge or Chrome. I also checked the issue on their PC environment.

Is this also bug?

By the way, there is no problem on my environment with the same version of Edge 143.0.3650.96.