server icon indicating copy to clipboard operation
server copied to clipboard

counterintuitive error message when password to share does not conform to policy

Open Ethendrel opened this issue 6 years ago • 11 comments

nc2

The error message shown when a password does not conform to the password policy set in the security settings should give a better hint to the problem than "Error updating the share". As of now it gives the impression of a general problem.

Ethendrel avatar Feb 18 '20 09:02 Ethendrel

I was extremely confused as well by this. There needs to be some better reporting based off this. Took me awhile to figure out what the error was because nothing was logged in regards to the password length.

I recommend that we give better insight as to why a share failed to share when it hits password policies.

Beeez avatar Feb 21 '20 17:02 Beeez

cc @skjnldsv

kesselb avatar Feb 27 '20 14:02 kesselb

cc @skjnldsv

kesselb avatar Feb 27 '20 14:02 kesselb

I just stumbled across this when sharing a folder with a password. That is very confusing.

adsworth avatar Apr 13 '20 11:04 adsworth

Hum, there is a tooltip on the password input too as far as I remember? :thinking:

skjnldsv avatar Apr 13 '20 13:04 skjnldsv

@skjnldsv I don't see any tooltip. If I click outside the popup, it hides and then reappears with the error message. Hovering the mouse pointer over the edit control also doesn't display a tooltip.

adsworth avatar Apr 14 '20 07:04 adsworth

Yep, there is supposed to be a tooltip on the input https://github.com/nextcloud/server/blob/699cbeb2fcc0f6bbaa12234e965900a5b27d52d2/apps/files_sharing/src/components/SharingEntryLink.vue#L180

skjnldsv avatar Apr 14 '20 08:04 skjnldsv

Found the error This is how it should behave Capture d’écran_2020-04-14_10-12-06

skjnldsv avatar Apr 14 '20 08:04 skjnldsv

Ahh, that looks better. :)

adsworth avatar Apr 14 '20 08:04 adsworth

fix in https://github.com/nextcloud/server/pull/20469

skjnldsv avatar Apr 14 '20 08:04 skjnldsv

@skjnldsv Thanks!

adsworth avatar Apr 14 '20 09:04 adsworth