Opened 14 years ago
Last modified 5 years ago
#13821 accepted defect (bug)
Changing visibility to password-protected without entering a password does not warn user
Reported by: | markel | Owned by: | kapeels |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | has-patch |
Focuses: | ui, administration | Cc: |
Description
Tested on r15182.
If the status of a post is set to Password Protected, and a password is not specified before the user clicks the OK button in visibility and then either publishes, saves, or updates the post, no warning is given to the user that not setting a password forces the post or page to remain Public.
In fact, if updating a post, and this is the only change made, the success message (1) for updating the post appears instead, even though no change was made to the post.
If the post was previously published as Private, and switched to Password Protected without entering a password, then saved, the post switches to Public on save instead of remaining Private.
Either a failure message upon updating or a warning to the user before saving should be displayed to the user to remind them that they didn't properly set a password.
To reproduce the last case above:
- Create a post. Publish it as Private.
- Edit the post. Change the visibility to Password Protected, but do not enter a password. Click OK.
- Update the post.
- The post visibility will be changed to Public.
Attachments (6)
Change History (25)
#1
@
14 years ago
- Keywords ux-feedback needs-patch added
- Milestone changed from Awaiting Triage to Future Release
#2
in reply to:
↑ description
@
14 years ago
- Cc kapeel.sable@… added
- Owner set to kapeels
- Status changed from new to accepted
#3
@
14 years ago
- Keywords gci added
A post that is private should not revert to public, either.
Making a GCI task.
#6
@
14 years ago
Ideally, the "OK" button should simply be visually disabled and functionally not clickable unless there is a value in the password box.
On the button click, verify that there's a value. On the text box change, toggle the disabled class depending on there being a value.
No need for validation otherwise.
@
14 years ago
I'm not sure how to edit post.js - compress post.dev.js into it or something. The patch attached only modifies post.dev.js but post.js needs to done too.
#7
follow-up:
↓ 8
@
14 years ago
As the GCI task was reopened, and I'm not really sure whether kapeels' patch works or not, I've just submitted another patch.
#8
in reply to:
↑ 7
@
14 years ago
- Cc westi added
- Keywords 3.2-early added
Replying to nano8blazex:
As the GCI task was reopened, and I'm not really sure whether kapeels' patch works or not, I've just submitted another patch.
Marked as Completed.
This patch is cool really good UX improvement.
#11
@
12 years ago
- Keywords needs-refresh added
Problem still exists. Patch needs a refresh, it did not prevent or notify me I had not entered a password.
#15
@
11 years ago
- Component changed from General to Administration
- Milestone changed from Future Release to 3.9
#16
@
11 years ago
- Component changed from Administration to Editor
- Focuses administration added
- Keywords 3.2-early needs-refresh removed
Tested and did a little js cleanup in 13821.diff. The disabling works for the OK button that is supposed to close the status area, however, the user can still update or save the post, so:
- Publish a private post
- Set the visibility to password protected, don't type in a password
- Hit Update, your post is now public
We can either disable the Update/Publish/Save button just like we do with OK, or we can revert the post status to whatever was chosen previously (private in the above case) upon post save/publish, if the password was blank. I like reverting better than disabling buttons. Thoughts?
Replying to markel:
I second this.
Would like to do this for gci.